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