2021-04-22 17:44:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Controller;
|
|
|
|
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
|
|
|
|
class AppController extends AbstractController
|
|
|
|
{
|
|
|
|
#[Route('/homepage', name: 'homepage')]
|
|
|
|
public function index(): Response
|
|
|
|
{
|
|
|
|
return $this->render('app/index.html.twig', [
|
|
|
|
'controller_name' => 'AppController',
|
|
|
|
]);
|
|
|
|
}
|
2021-04-23 15:06:41 +02:00
|
|
|
|
|
|
|
#[Route('/user', name: 'user_page')]
|
|
|
|
public function user(): Response
|
|
|
|
{
|
|
|
|
return $this->render('app/index.html.twig', [
|
|
|
|
'user' => $this->getUser(),
|
|
|
|
]);
|
|
|
|
}
|
2021-04-22 17:44:16 +02:00
|
|
|
}
|