src/Controller/Admin/SecurityController.php line 14
<?phpnamespace App\Controller\Admin;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Bundle\SecurityBundle\Security;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;class SecurityController extends AbstractController{#[Route(path: '/admin/login', name: 'app_login')]public function login(AuthenticationUtils $authenticationUtils): Response{$error = $authenticationUtils->getLastAuthenticationError();$lastUsername = $authenticationUtils->getLastUsername();return $this->render('admin/login.html.twig', ['last_username' => $lastUsername,'error' => $error,]);}#[Route('/admin/logout', name: 'app_logout', methods: ['GET'])]public function logout(Security $security){// controller can be blank: it will never be called!throw new \Exception('Don\'t forget to activate logout in security.yaml');}}