src/Controller/HomeController.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Controller;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class HomeController extends AbstractController
  8. {
  9.     #[Route('/'name'home')]
  10.     public function index(): Response
  11.     {
  12.         return $this->render('home/index.html.twig', [
  13.             'controller_name' => 'HomeController',
  14.         ]);
  15.     }
  16. }