src/Controller/DashboardController.php line 15
<?php
namespace App\Controller;
use App\Controller\Bootstrap\DefaultLayoutController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
#[Route('/dashboard')]
#[IsGranted("ROLE_USER")]
class DashboardController extends DefaultLayoutController
{
#[Route('/', name: 'app_dashboard')]
public function index(): Response
{
# Include vendors and javascript files for dashboard widgets
$this->theme->addVendors(['amcharts', 'amcharts-maps', 'amcharts-stock']);
return $this->render('pages/dashboards/index.html.twig');
}
}