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