From 4556e9933f91af0846a2f43b982d5c00e58a73be Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 23 Nov 2023 12:40:49 +0100 Subject: [PATCH] Simpler logout --- src/Controller/SecurityController.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index e1346883e7..1b724fa073 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -59,16 +59,4 @@ public function login( 'error' => $helper->getLastAuthenticationError(), ]); } - - /** - * This is the route the user can use to logout. - * - * But, this will never be executed. Symfony will intercept this first - * and handle the logout automatically. See logout in config/packages/security.yaml - */ - #[Route('/logout', name: 'security_logout')] - public function logout(): void - { - throw new \Exception('This should never be reached!'); - } }