/** * @param AbstractCommand $command * @param InputInterface $input * @param OutputInterface $output * @return array An array of [$callable, $parameters] that should be called for the command * @throws \Exception */ protected function doRunCommand(AbstractCommand $command, InputInterface $input, OutputInterface $output) { foreach ($command->getHelperSet() as $helper) { if ($helper instanceof InputAwareInterface) { $helper->setInput($input); } } return $command->run($input, $output); }