moved logout to SecurityController
This commit is contained in:
parent
f83d12443e
commit
08ab8c3376
|
@ -6,7 +6,6 @@ declare(strict_types=1);
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
use App\Repository\QuotesRepository;
|
use App\Repository\QuotesRepository;
|
||||||
use Exception;
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
|
@ -27,13 +26,4 @@ class FrontendController extends AbstractController
|
||||||
'quote' => json_encode(value: $quote->getQuote())
|
'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.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue