src/Admin/UI/Web/Controller/Security/SecurityController.php line 13
<?phpdeclare(strict_types=1);namespace App\Admin\UI\Web\Controller\Security;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();if ($error !== null) {$this->addFlash('danger', 'ui.login.error');}return $this->render('Admin/security/login.html.twig', ['error' => $error,'username' => $authenticationUtils->getLastUsername(),]);}}