split controllers

This commit is contained in:
Jannis Portmann 2021-05-03 18:32:31 +02:00
parent 35254a0bb4
commit d69842ba07
5 changed files with 151 additions and 64 deletions

View file

@ -0,0 +1,18 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class UserController extends AbstractController
{
#[Route('/user', name: 'user_page')]
public function user(): Response
{
return $this->render('user/index.html.twig', [
'user' => $this->getUser(),
]);
}
}