<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use App\Repository\AccueilRepository;
class AccueilController extends AbstractController
{
/**
* @Route("/accueil", name="accueil")
*/
public function index(AccueilRepository $accueilRepository): Response
{
return $this->render('accueil/index.html.twig', [
'accueil' => $accueilRepository->find(1),
]);
}
}