src/Controller/Front/WhoisController.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Front;
  3. use App\Repository\ContentRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class WhoisController extends AbstractController
  7. {
  8.     /**
  9.      * @Route("/qui-sommes-nous", name="front_who_is")
  10.      */
  11.     public function whoIs(ContentRepository $contentRepository)
  12.     {
  13.         return $this->render('front/whois/whois.html.twig', [
  14.             'block1' => $contentRepository->findOneBy(['page' => 'whois''section' => 'block1']),
  15.             'block2' => $contentRepository->findOneBy(['page' => 'whois''section' => 'block2']),
  16.             'block3' => $contentRepository->findOneBy(['page' => 'whois''section' => 'block3']),
  17.         ]);
  18.     }
  19. }