]> Raphaël G. Git Repositories - userbundle/commitdiff
Get route from new request layout
authorRaphaël Gertz <git@rapsys.eu>
Thu, 26 Nov 2026 15:34:48 +0000 (16:34 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 26 Nov 2026 15:34:48 +0000 (16:34 +0100)
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
         */
        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'])) {
 
                //With login path option
                if (!empty($loginPath = $this->options['login_path'])) {