]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Handler/AuthenticationSuccessHandler.php
Move now unsuported yml entities definition to xml format
[userbundle] / Handler / AuthenticationSuccessHandler.php
index c57c68a03f9fa19c890504af6d199d7f8261422e..e67158e4f1c37c0fb593a41bf9ae4b484ca142fb 100644 (file)
@@ -62,7 +62,7 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler {
         */
        public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response {
                //Set login route
-               $login = $request->get('_route');
+               $login = $request->attributes->get('_route');
 
                //With login path option
                if (!empty($loginPath = $this->options['login_path'])) {