src/Controller/Frontend/FrontendController.php line 28

Open in your IDE?
  1. <?php
  2. // src/Controller/Frontend/FrontendController.php
  3. namespace App\Controller\Frontend;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  7. use Symfony\Component\HttpFoundation\Session\SessionInterface;
  8. use Symfony\Component\Security\Core\Security;
  9. use Symfony\Component\HttpFoundation\Request;
  10. class FrontendController extends AbstractController
  11. {
  12.     
  13.     /**
  14.      * @Route("/", name="homepage_login", methods={"GET", "POST"})
  15.      */
  16.     public function login(Request $request): Response
  17.     {
  18.       return $this->render('website/index.html.twig', [
  19.             
  20.       ]);
  21.     }
  22.  
  23.     /**
  24.      * @Route("website/", name="homepage_website", methods={"GET", "POST"})
  25.      */
  26.     public function homepage(Request $request): Response
  27.     {
  28.               
  29.            return $this->render('website/index.html.twig', [
  30.             
  31.         ]);
  32.         
  33.     }
  34.   }