src/Controller/Admin/SecurityController.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Admin;
  3. use Symfony\Component\Routing\Annotation\Route;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
  6. class SecurityController extends AdminController
  7. {
  8.     /**
  9.      * Login
  10.      *
  11.      * @Route("/login", name="admin_login", methods={"GET"})
  12.      */
  13.     public function loginAction(AuthenticationUtils $helper)
  14.     {
  15.         return $this->render("Admin/Security/login.html.twig", [
  16.             'last_username' => $helper->getLastUsername(),
  17.             'error' => $helper->getLastAuthenticationError()
  18.         ]);
  19.     }
  20.     /**
  21.      * Login check
  22.      *
  23.      * @Route("/login-check", name="admin_login_check", methods={"POST"})
  24.      */
  25.     public function loginCheckAction()
  26.     {
  27.     }
  28.     /**
  29.      * Logout
  30.      *
  31.      * @Route("/logout", name="admin_logout", methods={"GET"})
  32.      */
  33.     public function logoutAction()
  34.     {
  35.     }
  36. }