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.

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
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 ].

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 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