src/Controller/Admin/SecurityController.php line 11
<?phpnamespace App\Controller\Admin;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;class SecurityController extends AbstractController{public function login(AuthenticationUtils $authenticationUtils): Response{$error = $authenticationUtils->getLastAuthenticationError();$lastUsername = $authenticationUtils->getLastUsername();return $this->render('Admin/login.html.twig', ['last_username' => $lastUsername, 'error' => $error]);}public function logout(): Response{return $this->redirectToRoute('login', []);}}