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