]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Resources/config/packages/rapsys_user.yaml
Add strict
[userbundle] / Resources / config / packages / rapsys_user.yaml
index 50887346738ed5189612b61a94d21d6316b68317..14e686f10cb0671d9d3b5794445001358bfcc9d5 100644 (file)
@@ -10,3 +10,11 @@ services:
         arguments: [ '@service_container', '@router', '@translator' ]
         autowire: true
         tags: [ 'controller.service_arguments' ]
+    #Register Authentication success handler
+    security.authentication.success_handler:
+        class: 'Rapsys\UserBundle\Handler\AuthenticationSuccessHandler'
+        arguments: [ '@router', {} ]
+    #Register logout success handler
+    security.logout.success_handler:
+        class: 'Rapsys\UserBundle\Handler\LogoutSuccessHandler'
+        arguments: [ '@service_container', '/', '@router' ]