<?php
namespace App\Controller\Backend;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
class SecurityController extends AbstractController
{
#[Route(
path: '/login',
name: 'backend-security-login',
)]
public function login(AuthenticationUtils $authenticationUtils): Response
{
return $this->render('@EasyAdmin/page/login.html.twig', [
'error' => $authenticationUtils->getLastAuthenticationError(),
'last_username' => $authenticationUtils->getLastUsername(),
'remember_me_enabled' => true,
'page_title' => 'Sound.ME Admin',
'action' => $this->generateUrl('backend-security-check'),
]);
}
}