src/Controller/Backend/SecurityController.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Backend;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
  7. class SecurityController extends AbstractController
  8. {
  9.     #[Route(
  10.         path'/login',
  11.         name'backend-security-login',
  12.     )]
  13.     public function login(AuthenticationUtils $authenticationUtils): Response
  14.     {
  15.         return $this->render('@EasyAdmin/page/login.html.twig', [
  16.             'error' => $authenticationUtils->getLastAuthenticationError(),
  17.             'last_username' => $authenticationUtils->getLastUsername(),
  18.             'remember_me_enabled' => true,
  19.             'page_title' => 'Sound.ME Admin',
  20.             'action' => $this->generateUrl('backend-security-check'),
  21.         ]);
  22.     }
  23. }