src/Controller/FooterController.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Repository\FamilleProduitRepository;
  4. use App\Repository\Template\PageRepository;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. class FooterController extends AbstractController
  7. {
  8.     public function index(PageRepository $pageRepositoryFamilleProduitRepository $familleProduitRepository)
  9.     {
  10.         $templateFooterPages $pageRepository->findBy(['footerActive' => true], ['navbarPosition' => 'ASC']);
  11.         $familleProduits $familleProduitRepository->findBy(['actif' => true], ['placement' => 'ASC']);
  12.         return $this->render('footer/footer.html.twig', [
  13.             'templateFooterPages' => $templateFooterPages,
  14.             'familleProduits' => $familleProduits,
  15.         ]);
  16.     }
  17. }