<?php
namespace App\Controller\Front;
use App\Application\Service\Menu\FooterService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
class FooterController extends AbstractController
{
/** @var FooterService */
private $footerService;
/**
* HeaderController constructor.
*
* @param FooterService $footerService
*/
public function __construct(FooterService $footerService)
{
$this->footerService = $footerService;
}
public function footer(bool $isShop = false, bool $isAccountCreation = false): Response
{
return $this->render('front/base/footer/footer.html.twig', [
'corporate_links' => $this->footerService->getCorporateLinks(),
'bottom_links' => $this->footerService->getBottomLinks(),
'social_links' => $this->footerService->getSocialLinks(),
'awards' => $this->footerService->getAwards(),
'languages' => $this->footerService->getLanguages(),
'is_shop' => $isShop,
'is_account_creation' => $isAccountCreation,
]);
}
}