MyComments/src/Controller/DashboardController.php
2024-02-12 19:50:59 -07:00

21 lines
568 B
PHP

<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
#[IsGranted('IS_AUTHENTICATED_FULLY')]
class DashboardController extends AbstractController
{
#[Route('/', name: 'app_dashboard')]
public function index(): Response
{
return $this->render('dashboard/index.html.twig', [
'controller_name' => 'DashboardController',
]);
}
}