function TraceableCommand::extractInteractiveInputs
1 call to TraceableCommand::extractInteractiveInputs()
- TraceableCommand::run in vendor/
symfony/ console/ Command/ TraceableCommand.php - Runs the command.
File
-
vendor/
symfony/ console/ Command/ TraceableCommand.php, line 338
Class
- TraceableCommand
- @internal
Namespace
Symfony\Component\Console\CommandCode
private function extractInteractiveInputs(array $arguments, array $options) : void {
foreach ($arguments as $argName => $argValue) {
if (\array_key_exists($argName, $this->arguments) && $this->arguments[$argName] === $argValue) {
continue;
}
$this->interactiveInputs[$argName] = $argValue;
}
foreach ($options as $optName => $optValue) {
if (\array_key_exists($optName, $this->options) && $this->options[$optName] === $optValue) {
continue;
}
$this->interactiveInputs['--' . $optName] = $optValue;
}
}