private function setupConsoleEventDispatcher(IndexedServiceContainer $container)
{
$container->define('console_event_dispatcher', function (IndexedServiceContainer $c) {
$dispatcher = new EventDispatcher();
array_map(array($dispatcher, 'addSubscriber'), $c->getByTag('console_event_dispatcher.listeners'));
return $dispatcher;
});
}