Example #1
0
 /**
  * Constructor.
  *
  * @param FactoryInterface          $factory
  * @param SecurityContextInterface  $securityContext
  * @param TranslatorInterface       $translator
  * @param EventDispatcherInterface  $eventDispatcher
  * @param CurrencyProviderInterface $currencyProvider
  * @param RepositoryInterface       $taxonomyRepository
  * @param CartProviderInterface     $cartProvider
  * @param CurrencyHelper            $currencyHelper
  */
 public function __construct(FactoryInterface $factory, SecurityContextInterface $securityContext, TranslatorInterface $translator, EventDispatcherInterface $eventDispatcher, CurrencyProviderInterface $currencyProvider, RepositoryInterface $taxonomyRepository, CartProviderInterface $cartProvider, CurrencyHelper $currencyHelper)
 {
     parent::__construct($factory, $securityContext, $translator, $eventDispatcher);
     $this->currencyProvider = $currencyProvider;
     $this->taxonomyRepository = $taxonomyRepository;
     $this->cartProvider = $cartProvider;
     $this->currencyHelper = $currencyHelper;
 }
 /**
  * @param FactoryInterface $factory
  * @param AuthorizationCheckerInterface $authorizationChecker
  * @param TranslatorInterface $translator
  * @param EventDispatcherInterface $eventDispatcher
  * @param RbacAuthorizationCheckerInterface $rbacAuthorizationChecker
  * @param CurrencyProviderInterface $currencyProvider
  * @param TaxonRepositoryInterface $taxonRepository
  * @param CartContextInterface $cartContext
  * @param PriceHelperInterface $priceHelper
  * @param ChannelContextInterface $channelContext
  * @param TokenStorageInterface $tokenStorage
  */
 public function __construct(FactoryInterface $factory, AuthorizationCheckerInterface $authorizationChecker, TranslatorInterface $translator, EventDispatcherInterface $eventDispatcher, RbacAuthorizationCheckerInterface $rbacAuthorizationChecker, CurrencyProviderInterface $currencyProvider, TaxonRepositoryInterface $taxonRepository, CartContextInterface $cartContext, PriceHelperInterface $priceHelper, ChannelContextInterface $channelContext, TokenStorageInterface $tokenStorage)
 {
     parent::__construct($factory, $authorizationChecker, $translator, $eventDispatcher, $rbacAuthorizationChecker);
     $this->currencyProvider = $currencyProvider;
     $this->taxonRepository = $taxonRepository;
     $this->cartContext = $cartContext;
     $this->priceHelper = $priceHelper;
     $this->channelContext = $channelContext;
     $this->tokenStorage = $tokenStorage;
 }
 /**
  * Constructor.
  *
  * @param FactoryInterface         $factory
  * @param SecurityContextInterface $securityContext
  * @param TranslatorInterface      $translator
  * @param EventDispatcherInterface $eventDispatcher
  * @param LocaleProviderInterface  $localeProvider
  */
 public function __construct(FactoryInterface $factory, SecurityContextInterface $securityContext, TranslatorInterface $translator, EventDispatcherInterface $eventDispatcher, LocaleProviderInterface $localeProvider, AuthorizationCheckerInterface $authorizationChecker)
 {
     parent::__construct($factory, $securityContext, $translator, $eventDispatcher, $authorizationChecker);
     $this->localeProvider = $localeProvider;
 }