src/Tomahawk/Bundle/ErrorHandlerBundle/ErrorHandlerBundle.php
public function registerEvents(EventDispatcherInterface $dispatcher)
    {
        $dispatcher->addSubscriber($this->container->get('exception_listener'));
        $dispatcher->addSubscriber($this->container->get('debug_handlers_listener'));
    }
public function registerEvents(EventDispatcherInterface $dispatcher)
    {
        $dispatcher->addSubscriber($this->container->get('exception_listener'));
        $dispatcher->addSubscriber($this->container->get('debug_handlers_listener'));
    }
Register any events for the bundle

This is called after all bundles have been boot so you get access
to all the services

@param EventDispatcherInterface $dispatcher