src/Controller/Front/FooterController.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Front;
  3. use App\Application\Service\Menu\MenuService;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. class FooterController extends AbstractController
  7. {
  8.     private MenuService $footerService;
  9.     public function __construct(MenuService $footerService)
  10.     {
  11.         $this->footerService $footerService;
  12.     }
  13.     public function footer(): Response
  14.     {
  15.         return $this->render('front/base/footer/footer.html.twig', [
  16.             'corporate_links' => $this->footerService->getCorporateLinks(),
  17.             'bottom_links' => $this->footerService->getBottomLinks(),
  18.             'social_links' => $this->footerService->getSocialLinks(),
  19.             'awards' => $this->footerService->getAwards(),
  20.             'languages' => $this->footerService->getLanguages(),
  21.             'is_shop' => false,
  22.         ]);
  23.     }
  24. }