split controllers
This commit is contained in:
parent
35254a0bb4
commit
d69842ba07
5 changed files with 151 additions and 64 deletions
18
src/Controller/UserController.php
Normal file
18
src/Controller/UserController.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\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(),
|
||||
]);
|
||||
}
|
||||
}
|
Reference in a new issue