function CompleteCommand::__construct
Parameters
array<string, class-string<CompletionOutputInterface>> $completionOutputs A list of additional completion outputs, with shell name as key and FQCN as value:
Overrides Command::__construct
File
-
vendor/
symfony/ console/ Command/ CompleteCommand.php, line 43
Class
- CompleteCommand
- Responsible for providing the values to the shell completion.
Namespace
Symfony\Component\Console\CommandCode
public function __construct(array $completionOutputs = []) {
// must be set before the parent constructor, as the property value is used in configure()
$this->completionOutputs = $completionOutputs + [
'bash' => BashCompletionOutput::class,
'fish' => FishCompletionOutput::class,
'zsh' => ZshCompletionOutput::class,
];
parent::__construct();
}