src/Controller/SecurityController.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
  6. class SecurityController extends AbstractController
  7. {
  8.     /**
  9.      * @Route("/login", name="app_login")
  10.      */
  11.     public function login(AuthenticationUtils $authenticationUtils)
  12.     {
  13.         $error $authenticationUtils->getLastAuthenticationError();
  14.         return $this->render('security/login.html.twig', [
  15.             'error' => $error,
  16.         ]);
  17.     }
  18.     /**
  19.      * @Route("/logout", name="app_logout")
  20.      */
  21.     public function logout()
  22.     {
  23.     }
  24. }