vendor/score/cms/src/Controller/SecurityController.php line 18

Open in your IDE?
  1. <?php
  2. namespace Score\CmsBundle\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("/admin/login", name="admin_login")
  10.      */
  11.     public function loginAction(AuthenticationUtils $authenticationUtils$public false)
  12.     {
  13.         // get the login error if there is one
  14.         //$authenticationUtils = $this->get('security.authentication_utils');
  15.         $error $authenticationUtils->getLastAuthenticationError();
  16.         // last username entered by the user
  17.         $lastUsername $authenticationUtils->getLastUsername();
  18.         //var_dump($lastUsername);
  19.         return $this->render('@ScoreCms/Security/login.html.twig', array(
  20.             'last_username' => $lastUsername,
  21.             'error' => $error,
  22.             'targetPath' => $public "/user/show" "/admin/start",
  23.         ));
  24.     }
  25.     /**
  26.      * @Route("/admin/logout", name="admin_logout")
  27.      */
  28.     public function logoutAction()
  29.     {
  30.     }
  31. }