|
|
|
|
|
|
|
|
use Lc\ShopBundle\Form\Frontend\NewsletterType; |
|
|
use Lc\ShopBundle\Form\Frontend\NewsletterType; |
|
|
use Lc\ShopBundle\Repository\ProductCategoryRepository; |
|
|
use Lc\ShopBundle\Repository\ProductCategoryRepository; |
|
|
use Symfony\Component\Form\FormFactoryInterface; |
|
|
use Symfony\Component\Form\FormFactoryInterface; |
|
|
|
|
|
use Symfony\Component\HttpFoundation\RequestStack; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
use Twig\Extension\AbstractExtension; |
|
|
use Twig\Extension\AbstractExtension; |
|
|
use Twig\TwigFilter; |
|
|
use Twig\TwigFilter; |
|
|
|
|
|
|
|
|
protected $formFactory ; |
|
|
protected $formFactory ; |
|
|
protected $productCategoryRepository ; |
|
|
protected $productCategoryRepository ; |
|
|
protected $hubRepository ; |
|
|
protected $hubRepository ; |
|
|
|
|
|
protected $requestStack ; |
|
|
|
|
|
|
|
|
public function __construct(EntityManagerInterface $em, Security $security, ProductCategoryRepository $productCategoryRepository, |
|
|
public function __construct(EntityManagerInterface $em, Security $security, ProductCategoryRepository $productCategoryRepository, |
|
|
GlobalParam $globalParam, FormFactoryInterface $formFactory, HubRepository $hubRepository) |
|
|
|
|
|
|
|
|
GlobalParam $globalParam, FormFactoryInterface $formFactory, HubRepository $hubRepository, RequestStack $requestStack) |
|
|
{ |
|
|
{ |
|
|
$this->em = $em ; |
|
|
$this->em = $em ; |
|
|
$this->security = $security ; |
|
|
$this->security = $security ; |
|
|
|
|
|
|
|
|
$this->hubRepository = $hubRepository ; |
|
|
$this->hubRepository = $hubRepository ; |
|
|
$this->globalParam = $globalParam ; |
|
|
$this->globalParam = $globalParam ; |
|
|
$this->formFactory = $formFactory ; |
|
|
$this->formFactory = $formFactory ; |
|
|
|
|
|
$this->requestStack = $requestStack ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function getFunctions() |
|
|
public function getFunctions() |