src/Controller/DashboardController.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. /**
  8.  * @IsGranted("IS_AUTHENTICATED_FULLY")
  9.  */
  10. class DashboardController extends AbstractController
  11. {
  12.     /**
  13.      * @Route("/", name="home")
  14.      */
  15.     public function index(): Response
  16.     {
  17.         return $this->render('dashboard/dashboard.html.twig');
  18.     }
  19.     /**
  20.      * @Route("/dashboard", name="dashboard")
  21.      */
  22.     public function dashboard(): Response
  23.     {
  24.         return $this->render('dashboard/dashboard.html.twig');
  25.     }
  26. }