src/Controller/DashboardController.php line 15

  1. <?php
  2. namespace App\Controller;
  3. use App\Controller\Bootstrap\DefaultLayoutController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. use Symfony\Component\Security\Http\Attribute\IsGranted;
  7. #[Route('/dashboard')]
  8. #[IsGranted("ROLE_USER")]
  9. class DashboardController extends DefaultLayoutController
  10. {
  11.     #[Route('/'name'app_dashboard')]
  12.     public function index(): Response
  13.     {
  14.         # Include vendors and javascript files for dashboard widgets
  15.         $this->theme->addVendors(['amcharts''amcharts-maps''amcharts-stock']);
  16.         return $this->render('pages/dashboards/index.html.twig');
  17.     }
  18. }