From 08ab8c3376f495c464aab573a0f964b1cf1a6e6e Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 1 Nov 2022 16:05:03 +0100 Subject: [PATCH] moved logout to SecurityController --- src/Controller/FrontendController.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Controller/FrontendController.php b/src/Controller/FrontendController.php index 72605ec..50f07f8 100644 --- a/src/Controller/FrontendController.php +++ b/src/Controller/FrontendController.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace App\Controller; use App\Repository\QuotesRepository; -use Exception; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; @@ -27,13 +26,4 @@ class FrontendController extends AbstractController 'quote' => json_encode(value: $quote->getQuote()) ]); } - - /** - * @throws Exception - */ - #[Route(path: '/logout', name: 'app_logout')] - public function logout(): never - { - throw new Exception(message: 'Logout should never be reached.'); - } }