src/Controller/OffreController.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Repository\OffreRepository;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  7. class OffreController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/", name="offre")
  11.      */
  12.     public function index(OffreRepository $offreRepository): Response
  13.     {
  14.         return $this->render('offre/index.html.twig', [
  15.             'offre' => $offreRepository->find(1),
  16.         ]);
  17.     }
  18. }