mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
init symfony framework #14
This commit is contained in:
parent
3c233fcfad
commit
380377b27c
114 changed files with 11525 additions and 10998 deletions
20
src/Controller/HomeController.php
Normal file
20
src/Controller/HomeController.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class HomeController extends AbstractController
|
||||
{
|
||||
#[Route(
|
||||
'/{_locale}/',
|
||||
name: 'home_index'
|
||||
)]
|
||||
public function index(Request $request): Response
|
||||
{
|
||||
return $this->render('default/home/index.html.twig');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue