21 lines
522 B
PHP
21 lines
522 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller\Account;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Attribute\Route;
|
|
use Symfony\Component\Security\Http\Attribute\IsGranted;
|
|
|
|
class IndexController extends AbstractController
|
|
{
|
|
#[Route('/account', name: 'app_account')]
|
|
#[IsGranted('ROLE_USER')]
|
|
public function index(): Response
|
|
{
|
|
return $this->render('account/index.html.twig');
|
|
}
|
|
}
|