fix: routes
This commit is contained in:
parent
83f8d00409
commit
3ed9a3ee5d
|
@ -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.');
|
||||||
|
|
Loading…
Reference in New Issue