From 79c799748bb3a402d2eebeb6b7e3d6f4149fe8bd Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 25 Jan 2023 22:17:28 +0100 Subject: [PATCH] feat(upgrade): add compliance with symfony 6.2 --- src/core/Authenticator/LoginFormAuthenticator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Authenticator/LoginFormAuthenticator.php b/src/core/Authenticator/LoginFormAuthenticator.php index 96a860f..f96c1ef 100644 --- a/src/core/Authenticator/LoginFormAuthenticator.php +++ b/src/core/Authenticator/LoginFormAuthenticator.php @@ -80,7 +80,7 @@ class LoginFormAuthenticator extends AbstractLoginFormAuthenticator return $this->passwordEncoder->isPasswordValid($user, $credentials['password']); } - public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) + public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey): RedirectResponse { if ($targetPath = $this->getTargetPath($request->getSession(), $providerKey)) { return new RedirectResponse($targetPath); @@ -89,7 +89,7 @@ class LoginFormAuthenticator extends AbstractLoginFormAuthenticator return new RedirectResponse($this->urlGenerator->generate('admin_dashboard_index')); } - protected function getLoginUrl(): string + protected function getLoginUrl(Request $request): string { return $this->urlGenerator->generate('auth_login'); }