src/Controller/IndexController.php line 34

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class IndexController extends AbstractController
  7. {
  8.     /**
  9.      * @Route("/", name="index")
  10.      */
  11.     public function index(): Response
  12.     {
  13.         return $this->render('Index/index.html.twig', [
  14.             'controller_name' => 'IndexController',
  15.         ]);
  16.     }
  17.     /**
  18.      * @Route("poc", name="poc")
  19.      */
  20.     public function poc(): Response
  21.     {
  22.         return $this->render('poc/index.html.twig', [
  23.             'controller_name' => 'IndexController',
  24.         ]);
  25.     }
  26.     /**
  27.      * @Route("404", name="notfound")
  28.      */
  29.     public function notfound(): Response
  30.     {
  31.         return $this->render('Index/notfound.html.twig', [
  32.             'controller_name' => 'IndexController',
  33.         ]);
  34.     }
  35. }