<?php
namespace App\Controller\Admin;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
class SecurityController extends AdminController
{
/**
* Login
*
* @Route("/login", name="admin_login", methods={"GET"})
*/
public function loginAction(AuthenticationUtils $helper)
{
return $this->render("Admin/Security/login.html.twig", [
'last_username' => $helper->getLastUsername(),
'error' => $helper->getLastAuthenticationError()
]);
}
/**
* Login check
*
* @Route("/login-check", name="admin_login_check", methods={"POST"})
*/
public function loginCheckAction()
{
}
/**
* Logout
*
* @Route("/logout", name="admin_logout", methods={"GET"})
*/
public function logoutAction()
{
}
}