diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 65c096f..9ed1922 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -12,6 +12,7 @@ class SecurityController extends AbstractController /** * @Route("/login", name="app_login") */ + #[Route('/login', name: 'app_login')] public function login(AuthenticationUtils $authenticationUtils): Response { // if ($this->getUser()) { @@ -29,6 +30,7 @@ class SecurityController extends AbstractController /** * @Route("/logout", name="app_logout") */ + #[Route('/logout', name: 'app_logout')] public function logout(): void { throw new \LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.');