Documentation

ComposerModifier extends JsonModifier
in package
Uses CommandInteraction

Table of Contents

$data  : array<string|int, mixed>
$file  : string
$in  : InputInterface
$out  : OutputInterface
$stepName  : string
$upgrade  : Upgrade
$version  : BaseVersion
$abortedRequiringUserAction  : bool
$hasBeenModified  : bool
$isOptional  : bool
__construct()  : mixed
abortRequiringUserAction()  : mixed
configure()  : mixed
confirmAutomatedChange()  : bool
from()  : mixed
ifModified()  : void
modify()  : void
optional()  : void
runCommand()  : bool
shouldSkipStep()  : mixed
upgradeToCurrentVersion()  : void

Properties

$abortedRequiringUserAction

private bool $abortedRequiringUserAction = false

Methods

abortRequiringUserAction()

public abortRequiringUserAction() : mixed
Return values
mixed —

confirmAutomatedChange()

public confirmAutomatedChange() : bool
Return values
bool —

from()

public from(string $file) : mixed
Parameters
$file : string
Return values
mixed —

ifModified()

public ifModified(Closure $callback) : void
Parameters
$callback : Closure
Return values
void —

modify()

public modify(Closure $callback) : void
Parameters
$callback : Closure
Return values
void —

optional()

public optional() : void
Return values
void —

runCommand()

public runCommand(string $command) : bool
Parameters
$command : string
Return values
bool —

shouldSkipStep()

public shouldSkipStep() : mixed
Return values
mixed —

upgradeToCurrentVersion()

public upgradeToCurrentVersion([string|null $desiredVersion = null ]) : void
Parameters
$desiredVersion : string|null = null
Return values
void —

Search results