Пример #1
0
 /**
  * @param Context $context
  * @param WishlistProviderInterface $wishlistProvider
  * @param Validator $formKeyValidator
  * @param ItemCarrier $itemCarrier
  */
 public function __construct(Context $context, WishlistProviderInterface $wishlistProvider, Validator $formKeyValidator, ItemCarrier $itemCarrier)
 {
     $this->wishlistProvider = $wishlistProvider;
     $this->formKeyValidator = $formKeyValidator;
     $this->itemCarrier = $itemCarrier;
     parent::__construct($context);
 }
Пример #2
0
 /**
  * @param Action\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider
  * @param ProductRepositoryInterface $productRepository
  */
 public function __construct(Action\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider, ProductRepositoryInterface $productRepository)
 {
     $this->_customerSession = $customerSession;
     $this->wishlistProvider = $wishlistProvider;
     parent::__construct($context);
     $this->productRepository = $productRepository;
 }
Пример #3
0
 /**
  * @param Action\Context $context
  * @param \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
  */
 public function __construct(Action\Context $context, \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
 {
     $this->wishlistProvider = $wishlistProvider;
     $this->_coreRegistry = $coreRegistry;
     $this->resultPageFactory = $resultPageFactory;
     parent::__construct($context);
 }
Пример #4
0
 /**
  * @param Action\Context $context
  * @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
  * @param \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider
  * @param \Magento\Wishlist\Model\LocaleQuantityProcessor $quantityProcessor
  */
 public function __construct(Action\Context $context, \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator, \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider, \Magento\Wishlist\Model\LocaleQuantityProcessor $quantityProcessor)
 {
     $this->_formKeyValidator = $formKeyValidator;
     $this->wishlistProvider = $wishlistProvider;
     $this->quantityProcessor = $quantityProcessor;
     parent::__construct($context);
 }
 /**
  * @param Action\Context $context
  * @param Session $customerSession
  * @param WishlistProviderInterface $wishlistProvider
  * @param ProductRepositoryInterface $productRepository
  * @param Validator $formKeyValidator
  */
 public function __construct(Action\Context $context, Session $customerSession, WishlistProviderInterface $wishlistProvider, ProductRepositoryInterface $productRepository, Validator $formKeyValidator)
 {
     $this->_customerSession = $customerSession;
     $this->wishlistProvider = $wishlistProvider;
     $this->productRepository = $productRepository;
     $this->formKeyValidator = $formKeyValidator;
     parent::__construct($context);
 }
Пример #6
0
 /**
  * @param Action\Context $context
  * @param WishlistProviderInterface $wishlistProvider
  * @param WishlistHelper $wishlistHelper
  * @param CheckoutCart $cart
  * @param CartHelper $cartHelper
  * @param Escaper $escaper
  */
 public function __construct(Action\Context $context, WishlistProviderInterface $wishlistProvider, WishlistHelper $wishlistHelper, CheckoutCart $cart, CartHelper $cartHelper, Escaper $escaper)
 {
     $this->wishlistProvider = $wishlistProvider;
     $this->wishlistHelper = $wishlistHelper;
     $this->cart = $cart;
     $this->cartHelper = $cartHelper;
     $this->escaper = $escaper;
     parent::__construct($context);
 }
Пример #7
0
 /**
  * @param Action\Context $context
  * @param \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider
  * @param \Magento\Wishlist\Model\LocaleQuantityProcessor $quantityProcessor
  * @param \Magento\Wishlist\Model\ItemFactory $itemFactory
  * @param \Magento\Checkout\Model\Cart $cart
  * @param \Magento\Wishlist\Model\Item\OptionFactory $
  * @param \Magento\Catalog\Helper\Product $productHelper
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Wishlist\Helper\Data $helper
  * @param \Magento\Checkout\Helper\Cart $cartHelper
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(Action\Context $context, \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider, \Magento\Wishlist\Model\LocaleQuantityProcessor $quantityProcessor, \Magento\Wishlist\Model\ItemFactory $itemFactory, \Magento\Checkout\Model\Cart $cart, \Magento\Wishlist\Model\Item\OptionFactory $optionFactory, \Magento\Catalog\Helper\Product $productHelper, \Magento\Framework\Escaper $escaper, \Magento\Wishlist\Helper\Data $helper, \Magento\Checkout\Helper\Cart $cartHelper)
 {
     $this->wishlistProvider = $wishlistProvider;
     $this->quantityProcessor = $quantityProcessor;
     $this->itemFactory = $itemFactory;
     $this->cart = $cart;
     $this->optionFactory = $optionFactory;
     $this->productHelper = $productHelper;
     $this->escaper = $escaper;
     $this->helper = $helper;
     $this->cartHelper = $cartHelper;
     parent::__construct($context);
 }
Пример #8
0
 /**
  * @param \Magento\Framework\App\Action\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  */
 public function __construct(\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession)
 {
     $this->customerSession = $customerSession;
     parent::__construct($context);
 }
Пример #9
0
 /**
  * @param Action\Context $context
  * @param \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider
  */
 public function __construct(Action\Context $context, \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider)
 {
     $this->wishlistProvider = $wishlistProvider;
     parent::__construct($context);
 }
 /**
  * @param Action\Context $context
  * @param \Magento\Framework\App\Response\Http\FileFactory $fileResponseFactory
  */
 public function __construct(Action\Context $context, \Magento\Framework\App\Response\Http\FileFactory $fileResponseFactory)
 {
     $this->_fileResponseFactory = $fileResponseFactory;
     parent::__construct($context);
 }
Пример #11
0
 /**
  * @param Action\Context $context
  * @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider
  * @param \Magento\Wishlist\Model\Config $wishlistConfig
  * @param \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder
  * @param \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation
  * @param \Magento\Customer\Helper\View $customerHelperView
  * @param WishlistSession $wishlistSession
  * @param ScopeConfigInterface $scopeConfig
  * @param StoreManagerInterface $storeManager
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(Action\Context $context, \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator, \Magento\Customer\Model\Session $customerSession, \Magento\Wishlist\Controller\WishlistProviderInterface $wishlistProvider, \Magento\Wishlist\Model\Config $wishlistConfig, \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder, \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation, \Magento\Customer\Helper\View $customerHelperView, WishlistSession $wishlistSession, ScopeConfigInterface $scopeConfig, StoreManagerInterface $storeManager)
 {
     $this->_formKeyValidator = $formKeyValidator;
     $this->_customerSession = $customerSession;
     $this->wishlistProvider = $wishlistProvider;
     $this->_wishlistConfig = $wishlistConfig;
     $this->_transportBuilder = $transportBuilder;
     $this->inlineTranslation = $inlineTranslation;
     $this->_customerHelperView = $customerHelperView;
     $this->wishlistSession = $wishlistSession;
     $this->scopeConfig = $scopeConfig;
     $this->storeManager = $storeManager;
     parent::__construct($context);
 }