/** * {@inheritdoc} */ protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output) { if (!in_array($command->getName(), ['help', 'list'])) { $output = new ConsoleOutput($output->getVerbosity(), $output->isDecorated(), $output->getFormatter()); } if ($command instanceof \Cawa\Console\Command) { $command->setInput($input); $command->setOutput($output); } return parent::doRunCommand($command, $input, $output); }