render(view: 'security/login.html.twig', parameters: [ '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.'); } }