src/Globus/Controller/SecurityController.php line 11

Open in your IDE?
  1. <?php
  2. namespace Globus\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
  5. class SecurityController extends AbstractController
  6. {
  7.     public function login(AuthenticationUtils $authenticationUtils)
  8.     {
  9.         if ($this->getUser()) {
  10.             return $this->redirectToRoute('globus_homepage');
  11.         }
  12.         $error $authenticationUtils->getLastAuthenticationError();
  13.         $lastUsername $authenticationUtils->getLastUsername();
  14.         return $this->render('globus/security/login.html.twig', [
  15.             'last_username' => $lastUsername,
  16.             'error' => $error,
  17.         ]);
  18.     }
  19.     public function logout()
  20.     {
  21.     }
  22. }