20 lines
391 B
PHP
20 lines
391 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Attribute\Route;
|
|
|
|
final class HomeController
|
|
{
|
|
#[Route('/', name: 'app_home', methods: ['GET'])]
|
|
public function index(): Response
|
|
{
|
|
return new Response(
|
|
'<h1>Symfony is running in FrankenPHP 🎉</h1>'
|
|
);
|
|
}
|
|
}
|