source/View/Controller/DashboardController.php line 28

Open in your IDE?
  1. <?php
  2. namespace App\View\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. class DashboardController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/", name="landing")
  11.      *
  12.      * @return Response
  13.      */
  14.     public function landingAction(): Response
  15.     {
  16.         return $this->render('Pages/Administration/landing.html.twig');
  17.     }
  18.     /**
  19.      * @Route("/dashboard", name="dashboard")
  20.      * @IsGranted("ROLE_USER")
  21.      *
  22.      * @return Response
  23.      */
  24.     public function dashboardAction(): Response
  25.     {
  26.         return $this->render('Pages/Administration/dashboard.html.twig');
  27.     }
  28. }