|
|
|
|
|
|
|
|
use Symfony\Component\Form\FormFactoryInterface; |
|
|
use Symfony\Component\Form\FormFactoryInterface; |
|
|
use Symfony\Component\HttpFoundation\RequestStack; |
|
|
use Symfony\Component\HttpFoundation\RequestStack; |
|
|
use Symfony\Component\HttpKernel\KernelInterface; |
|
|
use Symfony\Component\HttpKernel\KernelInterface; |
|
|
|
|
|
use Symfony\Component\Routing\RouterInterface; |
|
|
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 $liipCacheHelper; |
|
|
protected $liipCacheHelper; |
|
|
protected $parameterBag; |
|
|
protected $parameterBag; |
|
|
protected $kernel; |
|
|
protected $kernel; |
|
|
|
|
|
protected $router ; |
|
|
|
|
|
|
|
|
public function __construct(EntityManagerInterface $em, Security $security, MerchantUtilsInterface $merchantUtils, |
|
|
public function __construct(EntityManagerInterface $em, Security $security, MerchantUtilsInterface $merchantUtils, |
|
|
FormFactoryInterface $formFactory, RequestStack $requestStack, ParameterBagInterface $parameterBag, KernelInterface $kernel) |
|
|
|
|
|
|
|
|
FormFactoryInterface $formFactory, RequestStack $requestStack, ParameterBagInterface $parameterBag, |
|
|
|
|
|
KernelInterface $kernel, RouterInterface $router) |
|
|
{ |
|
|
{ |
|
|
$this->em = $em; |
|
|
$this->em = $em; |
|
|
$this->security = $security; |
|
|
$this->security = $security; |
|
|
|
|
|
|
|
|
$this->productFamilyRepository = $this->em->getRepository($this->em->getClassMetadata(ProductFamilyInterface::class)->getName()); |
|
|
$this->productFamilyRepository = $this->em->getRepository($this->em->getClassMetadata(ProductFamilyInterface::class)->getName()); |
|
|
$this->parameterBag = $parameterBag; |
|
|
$this->parameterBag = $parameterBag; |
|
|
$this->kernel = $kernel; |
|
|
$this->kernel = $kernel; |
|
|
|
|
|
$this->router = $router ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function getFunctions() |
|
|
public function getFunctions() |