src/Controller/HomeController.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Controller;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
  8. class HomeController extends AbstractController
  9. {
  10.     #[IsGranted('ROLE_USER')]
  11.     #[Route(path'/'name'home')]
  12.     public function home(): Response
  13.     {
  14.         return $this->render('index.html.twig', [
  15.         ]);
  16.     }
  17. }