src/Controller/DefaultController.php line 24

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 DefaultController extends AbstractController
  7. {
  8.     /**
  9.      * Affiche la page d'accueil
  10.      * @Route("/", name="index")
  11.      */
  12.     public function index(): Response
  13.     {
  14.         return $this->render('default/index.html.twig');
  15.     }
  16.     /**
  17.      * Affiche la page d’info complĂ©mentaire
  18.      * @Route("/about", name="about")
  19.      */
  20.     public function about(): Response
  21.     {
  22.         return $this->render('default/info.html.twig');
  23.     }
  24. }