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.      * @Route("/secured", name="app_secured")
  10.      */
  11.     public function index(): Response
  12.     {
  13.         return $this->render('default/index.html.twig', [
  14.             'controller_name' => 'DefaultController',
  15.         ]);
  16.     }
  17.     /**
  18.      * @Route("/", name="app_home")
  19.      */
  20.     public function home(): Response
  21.     {
  22.         return $this->render('default/index.html.twig', [
  23.             'controller_name' => 'DefaultController',
  24.         ]);
  25.     }
  26.     /**
  27.      * @Route("/logged", name="app_logged")
  28.      */
  29.     public function logged()
  30.     {
  31.         return $this->render('default/logged.html.twig');
  32.     }
  33. }