Add application source code, configs and assets
- Controllers, Entity, Repository, Services, Twig extensions - Templates (account, emails, home, legal, security, unsubscribe) - Symfony config updates (bundles, security, framework, services) - Vite + Bun setup with PostCSS - Caddy config, CLAUDE.md, README - Update .gitignore (node_modules, .idea, cert) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
18
src/Controller/AccountController.php
Normal file
18
src/Controller/AccountController.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user