<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
class AdminAccountController extends AbstractController
{
/**
* @Route("/admin073/login", name="admin_account_login")
*/
public function adminLogin(AuthenticationUtils $utils)
{
$error = $utils->getLastAuthenticationError();
$username = $utils->getLastUsername();
//dump($utils);
return $this->render('admin/account/login.html.twig', [
'hasError' => $error !== null,
'username' => $username
]);
}
/**
* Déconnexion du user : gestion par Symfony via le firewall config/packages/security.yaml
* @Route("/admin073/logout", name="admin_account_logout")
* @return void
*/
public function adminLogout()
{
//
}
}