class InstallCommand extends Command (View source)

Constants

RETURN_CODE_ON_FAILURE

The return code we should return when an exception is thrown while running the command.

Properties

private $preconditionsPassed
private Installer|null $installer

Methods

run(InputInterface $input, OutputInterface $output)

{@inheritdoc}

from  Command
writeError(OutputInterface $output, Exception|Throwable $error)

Write an exception.

from  Command
addEnvOption()

Add the "env" option to the command options.

from  Command
getInstaller()

No description

configure()

No description

execute(InputInterface $input, OutputInterface $output)

No description

interact(InputInterface $input, OutputInterface $output)

No description

Question
getQuestion($row, InputInterface $input)

Do some procedural work to a row in the wizard step list to turn it into a proper question.

Generator|Question[]
getWizard(InputInterface $input, OutputInterface $output, null $firstKey = null)

A wizard generator.

string
getQuestionString(InputOption $option, $default)

Take an option and return a question string.

array
wizardSteps()

An array of steps Items: [ "option-name", "default-value", function($question, $input, $option) : $question ].

getPreconditionsPassed(Application $app, OutputInterface $output)

No description

bool
checkPreconditions(Application $app, OutputInterface $output)

No description

Details

run(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output

protected writeError(OutputInterface $output, Exception|Throwable $error)

Write an exception.

Parameters

OutputInterface $output
Exception|Throwable $error

protected Command addEnvOption()

Add the "env" option to the command options.

Return Value

Command

protected Installer getInstaller()

No description

Return Value

Installer

protected configure()

No description

protected execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

protected interact(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

private Question getQuestion($row, InputInterface $input)

Do some procedural work to a row in the wizard step list to turn it into a proper question.

Parameters

$row
InputInterface $input

Return Value

Question

private Generator|Question[] getWizard(InputInterface $input, OutputInterface $output, null $firstKey = null)

A wizard generator.

Parameters

InputInterface $input
OutputInterface $output
null $firstKey

Return Value

Generator|Question[]

private string getQuestionString(InputOption $option, $default)

Take an option and return a question string.

Parameters

InputOption $option
$default

Return Value

string

private array wizardSteps()

An array of steps Items: [ "option-name", "default-value", function($question, $input, $option) : $question ].

Return Value

array

private getPreconditionsPassed(Application $app, OutputInterface $output)

No description

Parameters

Application $app
OutputInterface $output

private bool checkPreconditions(Application $app, OutputInterface $output)

No description

Parameters

Application $app
OutputInterface $output

Return Value

bool