symfony-design-system/src/Controller/HomeController.php

20 lines
467 B
PHP
Raw Normal View History

2024-02-28 22:02:05 +00:00
<?php
declare(strict_types=1);
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
final class HomeController extends AbstractController
{
#[Route(path: '/', name: 'home')]
public function __invoke(): Response
{
// TODO: show a list of all components.
return $this->render('home.html.twig');
}
}