src/Controller/DefaultController.php line 14

  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. use Symfony\Component\Security\Http\Attribute\IsGranted;
  7. #[IsGranted('ROLE_USER')]
  8. class DefaultController extends AbstractController
  9. {
  10.     #[Route('/'name'home')]
  11.     public function index(): Response
  12.     {
  13.         return $this->render('default/index.html.twig', [
  14.             'controller_name' => 'DefaultController',
  15.         ]);
  16.     }
  17. }