Success handler not working after Symfony2 login
问题 The goal is to do something after authentication success in Symfony2. In order to do that I have extended AuthenticationSuccessHandlerInterface creating a service for the form login in order to be its success handler. Here is the firewall in the security.yml file (where the success handler is declared): firewalls: main: pattern: ^/ form_login: check_path: fos_user_security_check provider: fos_userbundle csrf_provider: form.csrf_provider success_handler: foo_user.component.authentication