public function doRun(InputInterface $input, OutputInterface $output)
{
$event = new Application\Console\Event($this, $input, $output);
$this->dispatcher->dispatch(Events::RUN_BEFORE, $event);
/**
* only for compatibility to old versions.
*/
$event = new ConsoleEvent(new Command('dummy'), $input, $output);
$this->dispatcher->dispatch('console.run.before', $event);
$input = $this->config->checkConfigCommandAlias($input);
if ($output instanceof ConsoleOutput) {
$this->checkVarDir($output->getErrorOutput());
}
return parent::doRun($input, $output);
}