/** * {@inheritdoc} */ public function doRunCommand(Command $command, InputInterface $input, OutputInterface $output) { // Inject the kernel in to the command before we execute it. if ($command instanceof CommandInterface) { $command->setKernel($this->kernel); } return parent::doRunCommand($command, $input, $output); }