Skip to content

Commit 4556e99

Browse files
committed
Simpler logout
1 parent 38ad58e commit 4556e99

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/Controller/SecurityController.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,4 @@ public function login(
5959
'error' => $helper->getLastAuthenticationError(),
6060
]);
6161
}
62-
63-
/**
64-
* This is the route the user can use to logout.
65-
*
66-
* But, this will never be executed. Symfony will intercept this first
67-
* and handle the logout automatically. See logout in config/packages/security.yaml
68-
*/
69-
#[Route('/logout', name: 'security_logout')]
70-
public function logout(): void
71-
{
72-
throw new \Exception('This should never be reached!');
73-
}
7462
}

0 commit comments

Comments
 (0)