From fe085043405d364b21e9c88f2cc5ccb9a060c3c9 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 26 Apr 2022 19:24:22 +0200 Subject: [PATCH] initial commit --- src/Controller/SecurityController.php | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index dbb5f33..3c0b0e1 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -8,27 +8,23 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; -/** - * - */ class SecurityController extends AbstractController { #[Route(path: '/login', name: 'app_login')] public function login(AuthenticationUtils $authenticationUtils): Response { return $this->render(view: 'security/login.html.twig', parameters: [ - 'error' => $authenticationUtils->getLastAuthenticationError(), - 'last_username' => $authenticationUtils->getLastUsername() + 'error' => $authenticationUtils->getLastAuthenticationError(), + 'last_username' => $authenticationUtils->getLastUsername(), ]); } - - - /** - * @return mixed - */ - #[Route(path: '/logout', name: 'app_logout')] - public function logout() - { - throw new Exception(message: 'Logout should never be reached.'); - } + + /** + * @return mixed + */ + #[Route(path: '/logout', name: 'app_logout')] + public function logout(): mixed + { + throw new Exception(message: 'Logout should never be reached.'); + } }