src/Controller/SecurityController.php line 23
<?phpnamespace App\Controller;use LogicException;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;/*** Class SecurityController*/class SecurityController extends AbstractController{/*** @Route("/login", name="app_login")** @param AuthenticationUtils $authenticationUtils** @return Response*/public function login(AuthenticationUtils $authenticationUtils): Response{if ($this->getUser()) {return $this->redirectToRoute('shop.dashboard');}return $this->render('security/login.html.twig', ['lastUsername' => $authenticationUtils->getLastUsername(),'error' => $authenticationUtils->getLastAuthenticationError()]);}/*** @Route("/logout", name="app_logout")*/public function logout(){throw new LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.');}}