feat(upgrade): add compliance with symfony 6.2

This commit is contained in:
Simon Vieille 2023-01-25 22:14:18 +01:00
parent c19dc624c7
commit b20d542dc3
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -39,7 +39,7 @@ class LoginFormAuthenticator extends AbstractLoginFormAuthenticator
$this->passwordEncoder = $passwordEncoder; $this->passwordEncoder = $passwordEncoder;
} }
public function supports(Request $request) public function supports(Request $request): bool
{ {
return 'auth_login' === $request->attributes->get('_route') && $request->isMethod('POST'); return 'auth_login' === $request->attributes->get('_route') && $request->isMethod('POST');
} }
@ -89,7 +89,7 @@ class LoginFormAuthenticator extends AbstractLoginFormAuthenticator
return new RedirectResponse($this->urlGenerator->generate('admin_dashboard_index')); return new RedirectResponse($this->urlGenerator->generate('admin_dashboard_index'));
} }
protected function getLoginUrl() protected function getLoginUrl(): string
{ {
return $this->urlGenerator->generate('auth_login'); return $this->urlGenerator->generate('auth_login');
} }