name: kernel.event_listener, event: kernel.controller } - { name: kernel.event_listener, event: kernel.response, method: onKernelResponse } - { name: kernel.event_listener, event: security.interactive_login } $listener = new LocationListener(); $dispatcher->addListener('kernel.controller', array($listener, 'onKernelController')); $dispatcher->addListener('kernel.response', array($listener, 'onKernelResponse')); $dispatcher->addListener('security.interactive_login', array($listener, 'onSecurityInteractiveLogin'));