<?php
namespace App\Controller\Front;
use App\Repository\ContentRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class WhoisController extends AbstractController
{
/**
* @Route("/qui-sommes-nous", name="front_who_is")
*/
public function whoIs(ContentRepository $contentRepository)
{
return $this->render('front/whois/whois.html.twig', [
'block1' => $contentRepository->findOneBy(['page' => 'whois', 'section' => 'block1']),
'block2' => $contentRepository->findOneBy(['page' => 'whois', 'section' => 'block2']),
'block3' => $contentRepository->findOneBy(['page' => 'whois', 'section' => 'block3']),
]);
}
}