// bind before the console.command event, so the listeners have access to input options/arguments
try{ $command->mergeApplicationDefinition(); $input->bind($command->getDefinition()); }catch(ExceptionInterface){ // ignore invalid options/arguments for now, to allow the event listeners to customize the InputDefinition
}
// expand shortcut names ("cache:cl<TAB>") into their full name ("cache:clear")
$suggestions->suggestValues(array_filter(array_merge([$command->getName()], $command->getAliases()))); }else{ $command->mergeApplicationDefinition(); $completionInput->bind($command->getDefinition());
if(CompletionInput::TYPE_OPTION_NAME === $completionInput->getCompletionType()){ $this->log(' Completing option names for the <comment>'.($command instanceof LazyCommand ? $command->getCommand() : $command)::class.'</> command.');
$suggestions->suggestOptions($command->getDefinition()->getOptions()); }else{ $this->log([ ' Completing using the <comment>'.($command instanceof LazyCommand ? $command->getCommand() : $command)::class.'</> class.', ' Completing <comment>'.$completionInput->getCompletionType().'</> for <comment>'.$completionInput->getCompletionName().'</>', ]);
// bind before the console.command event, so the listeners have access to input options/arguments
try{ $command->mergeApplicationDefinition(); $input->bind($command->getDefinition()); }catch(ExceptionInterface){ // ignore invalid options/arguments for now, to allow the event listeners to customize the InputDefinition
}
// expand shortcut names ("cache:cl<TAB>") into their full name ("cache:clear")
$suggestions->suggestValues(array_filter(array_merge([$command->getName()], $command->getAliases()))); }else{ $command->mergeApplicationDefinition(); $completionInput->bind($command->getDefinition());
if(CompletionInput::TYPE_OPTION_NAME === $completionInput->getCompletionType()){ $this->log(' Completing option names for the <comment>'.($command instanceof LazyCommand ? $command->getCommand() : $command)::class.'</> command.');
$suggestions->suggestOptions($command->getDefinition()->getOptions()); }else{ $this->log([ ' Completing using the <comment>'.($command instanceof LazyCommand ? $command->getCommand() : $command)::class.'</> class.', ' Completing <comment>'.$completionInput->getCompletionType().'</> for <comment>'.$completionInput->getCompletionName().'</>', ]);