src/Controller/Front/FooterController.php line 24

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