Symfony2 extending DefaultAuthenticationSuccessHandler

If you only have one success / failure handler defined for your application, there’s a slightly easier way to do this. Rather than define a new service for the success_handler and failure_handler, you can override security.authentication.success_handler and security.authentication.failure_handler instead. Example: services.yml services: security.authentication.success_handler: class: StatSidekick\UserBundle\Handler\AuthenticationSuccessHandler arguments: [“@security.http_utils”, {}] tags: – { name: ‘monolog.logger’, channel: ‘security’ … Read more