src/Base/Controller/Panel/AuthController.php line 19
<?php/*** Created by PhpStorm.* User: Shokhaa* Date: 18/11/22* Time: 14:04*/namespace App\Base\Controller\Panel;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 AuthController extends AbstractController{#[Route('/login', name: 'app_login')]public function index(AuthenticationUtils $authenticationUtils): Response{if ($this->getUser()) {return $this->redirect('/');}return $this->render('login/index.html.twig', ['last_username' => $authenticationUtils->getLastUsername(),'error' => $authenticationUtils->getLastAuthenticationError(),]);}#[Route('/logout', name: 'app_logout', methods: ['GET', 'POST'])]public function logout(){throw new \LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.');}#[Route('/', name: 'home')]public function home(){return $this->redirect('/flower');}}