/**
  * @param \Magento\Catalog\Block\Product\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Helper\Product\ConfigurationPool $helperPool
  * @param \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer
  * @param \Magento\Framework\Data\Helper\PostHelper $postDataHelper
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Helper\Product\ConfigurationPool $helperPool, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, \Magento\Framework\Data\Helper\PostHelper $postDataHelper, array $data = [])
 {
     parent::__construct($context, $httpContext, $data);
     $this->_helperPool = $helperPool;
     $this->currentCustomer = $currentCustomer;
     $this->postDataHelper = $postDataHelper;
 }
Beispiel #2
0
 /**
  * @param \Magento\Catalog\Block\Product\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Api\ProductRepositoryInterface $productRepository
  * @param \Magento\Catalog\Helper\Product\ConfigurationPool $helperPool
  * @param \Magento\Framework\Data\Form\FormKey $formKey
  * @param \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Api\ProductRepositoryInterface $productRepository, \Magento\Catalog\Helper\Product\ConfigurationPool $helperPool, \Magento\Framework\Data\Form\FormKey $formKey, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, array $data = [])
 {
     parent::__construct($context, $httpContext, $productRepository, $data);
     $this->_formKey = $formKey;
     $this->_helperPool = $helperPool;
     $this->currentCustomer = $currentCustomer;
 }
Beispiel #3
0
 /**
  * @param \Magento\Catalog\Block\Product\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Core\Helper\Data $coreData
  * @param \Magento\Wishlist\Model\WishlistFactory $wishlistFactory
  * @param \Magento\Rss\Model\RssFactory $rssFactory
  * @param \Magento\Catalog\Helper\Output $outputHelper
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Core\Helper\Data $coreData, \Magento\Wishlist\Model\WishlistFactory $wishlistFactory, \Magento\Rss\Model\RssFactory $rssFactory, \Magento\Catalog\Helper\Output $outputHelper, array $data = array())
 {
     $this->_outputHelper = $outputHelper;
     $this->_coreData = $coreData;
     $this->_wishlistFactory = $wishlistFactory;
     $this->_rssFactory = $rssFactory;
     parent::__construct($context, $httpContext, $productFactory, $data);
 }
Beispiel #4
0
 /**
  * @param \Magento\Catalog\Block\Product\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Catalog\Helper\Product\ConfigurationPool $helperPool
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Catalog\Helper\Product\ConfigurationPool $helperPool, array $data = array())
 {
     $this->_helperPool = $helperPool;
     parent::__construct($context, $httpContext, $productFactory, $data);
 }
Beispiel #5
0
 /**
  * @param \Magento\Catalog\Block\Product\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Customer\Service\V1\CustomerAccountServiceInterface $customerAccountService
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Customer\Service\V1\CustomerAccountServiceInterface $customerAccountService, array $data = array())
 {
     $this->_customerAccountService = $customerAccountService;
     parent::__construct($context, $httpContext, $productFactory, $data);
 }
Beispiel #6
0
 /**
  * @param \Magento\Catalog\Block\Product\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Api\ProductRepositoryInterface $productRepository
  * @param \Magento\Catalog\Helper\Product\ConfigurationPool $helperPool
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Api\ProductRepositoryInterface $productRepository, \Magento\Catalog\Helper\Product\ConfigurationPool $helperPool, array $data = [])
 {
     $this->_helperPool = $helperPool;
     parent::__construct($context, $httpContext, $productRepository, $data);
 }
 /**
  * @param \Magento\Catalog\Block\Product\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository, array $data = [])
 {
     $this->customerRepository = $customerRepository;
     parent::__construct($context, $httpContext, $data);
 }