]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Resources/config/packages/rapsys_user.yaml
Add strict
[userbundle] / Resources / config / packages / rapsys_user.yaml
index d5209612c94acce89b54e65f3a2d57d9563b58ba..14e686f10cb0671d9d3b5794445001358bfcc9d5 100644 (file)
@@ -10,6 +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
-    Rapsys\UserBundle\Handler\LogoutSuccessHandler:
-        arguments: [ '@service_container', '@router' ]
+    security.logout.success_handler:
+        class: 'Rapsys\UserBundle\Handler\LogoutSuccessHandler'
+        arguments: [ '@service_container', '/', '@router' ]