InstallCommand
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. |
ALLOWASROOT_OPTION |
The name of the CLI option that allows running CLI commands as root without confirmation. |
ALLOWASROOT_ENV |
The name of the environment variable that allows running CLI commands as root without confirmation. |
private OPTIONPRECONDITIONS_ERROR |
|
private OPTIONPRECONDITIONS_WARNINGS |
|
private OPTIONPRECONDITIONS_SUCCESS |
|
Properties
protected bool | $canRunAsRoot | Can this command be executed as root? If set to false, the command can be executed if one of these conditions is satisfied:
|
from Command |
private bool|null | $preconditionsPassed | ||
private Installer|null | $configuredInstaller |
Methods
Allow/disallow running this command as root without confirmation.
No description
No description
No description
Do some procedural work to a row in the wizard step list to turn it into a proper question.
A wizard generator.
Take an option and return a question string.
An array of steps Items: [ "option-name", "default-value", function($question, $input, $option) : $question ].
No description
No description
No description
Details
run(InputInterface $input, OutputInterface $output)
{@inheritdoc}
protected
initialize(InputInterface $input, OutputInterface $output)
{@inheritdoc}
protected $this
addEnvOption()
Add the "env" option to the command options.
protected $this
setCanRunAsRoot(bool $canRunAsRoot)
Allow/disallow running this command as root without confirmation.
protected bool|null
isRunningAsRoot()
Is the current user root?
protected
confirmRunningAsRoot(InputInterface $input, OutputInterface $output)
No description
protected
configure()
No description
protected
execute(InputInterface $input, OutputInterface $output)
No description
protected
interact(InputInterface $input, OutputInterface $output)
No description
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.
private Generator|Question[]
getWizard(InputInterface $input, OutputInterface $output, null $firstKey = null)
A wizard generator.
private string
getQuestionString(InputOption $option, $default)
Take an option and return a question string.
private array
wizardSteps()
An array of steps Items: [ "option-name", "default-value", function($question, $input, $option) : $question ].
private
getPreconditionsPassed(Application $app, OutputInterface $output)
No description
private bool
checkPreconditions(Application $app, OutputInterface $output)
No description
private array
getFinalOptions(InputInterface $input)
No description
private Installer
buildInstaller(array $options)
No description
private int
checkOptionPreconditions(Application $app, Installer $installer, InputInterface $input, OutputInterface $output)
No description