src/Tomahawk/Bundle/FrameworkBundle/FrameworkBundle.php
public function registerEvents(EventDispatcherInterface $dispatcher)
    {
        $dispatcher->addSubscriber($this->container->get('route_listener'));

        $dispatcher->addSubscriber($this->container->get('locale_listener'));

        $dispatcher->addSubscriber(new CookieListener($this->container));

        $dispatcher->addSubscriber(new StringResponseListener());

        $dispatcher->addSubscriber(new SessionListener($this->container));

        $dispatcher->addSubscriber(new SaveSessionListener());
    }
public function registerEvents(EventDispatcherInterface $dispatcher)
    {
        $dispatcher->addSubscriber($this->container->get('route_listener'));

        $dispatcher->addSubscriber($this->container->get('locale_listener'));

        $dispatcher->addSubscriber(new CookieListener($this->container));

        $dispatcher->addSubscriber(new StringResponseListener());

        $dispatcher->addSubscriber(new SessionListener($this->container));

        $dispatcher->addSubscriber(new SaveSessionListener());
    }
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