Add cs fixer and first controller with route /.

This commit is contained in:
Krzysztof Płaczek
2024-10-16 16:34:55 +02:00
parent 8d18667263
commit 718855aaf6
6 changed files with 99 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class MainController
{
#[Route('/', name: 'main')]
public function homepage(): Response
{
return new Response('Hello World!');
}
}