Matthias\SymfonyConsoleForm\Console\EventListener\SetInputDefinitionOfFormBasedCommandEventListener::onConsoleCommand PHP Метод

onConsoleCommand() публичный Метод

public onConsoleCommand ( Symfony\Component\Console\Event\ConsoleCommandEvent $event )
$event Symfony\Component\Console\Event\ConsoleCommandEvent
    public function onConsoleCommand(ConsoleCommandEvent $event)
    {
        $command = $event->getCommand();
        if ($command instanceof HelpCommand) {
            $command = $this->getCommandFromHelpCommand($command);
        }
        if (!$command instanceof FormBasedCommand) {
            return;
        }
        $inputDefinition = $this->inputDefinitionFactory->createForFormType($command->formType());
        $this->setInputDefinition($command, $event->getInput(), $inputDefinition);
    }