<?php
namespace App\Controller;
use App\Repository\FamilleProduitRepository;
use App\Repository\Template\PageRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class FooterController extends AbstractController
{
public function index(PageRepository $pageRepository, FamilleProduitRepository $familleProduitRepository)
{
$templateFooterPages = $pageRepository->findBy(['footerActive' => true], ['navbarPosition' => 'ASC']);
$familleProduits = $familleProduitRepository->findBy(['actif' => true], ['placement' => 'ASC']);
return $this->render('footer/footer.html.twig', [
'templateFooterPages' => $templateFooterPages,
'familleProduits' => $familleProduits,
]);
}
}