Example #1
0
 /**
  * {@inheritDoc}
  */
 protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output)
 {
     if ($command instanceof \Composer\Command\BaseCommand) {
         if (!$command instanceof SelfUpdateCommand) {
             $command->setComposer(ComposerFactory::create($this->inputOutput));
         }
         $command->setIO(new ConsoleIO($input, $output, $this->getHelperSet()));
     }
     return parent::doRunCommand($command, $input, $output);
 }