fix: routes

This commit is contained in:
b1ek 2024-10-03 21:08:26 +10:00
parent 83f8d00409
commit 3ed9a3ee5d
Signed by: blek
GPG Key ID: A622C22C9BC616B2
1 changed files with 2 additions and 0 deletions

View File

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