/** * Related products block construct * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility * @param \Magento\Framework\Module\Manager $moduleManager * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Framework\Module\Manager $moduleManager, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, array $data = []) { $this->_catalogProductVisibility = $catalogProductVisibility; $this->_moduleManager = $moduleManager; $this->_productCollectionFactory = $productCollectionFactory; parent::__construct($context, $data); }
public function __construct(AttributeFactory $attributeFactory, LoggerInterface $loggerInterface, DateTime $dateTime, Context $context, array $data) { $this->_attributeFactory = $attributeFactory; $this->_date = $dateTime; $this->_logger = $loggerInterface; parent::__construct($context, $data); }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Framework\App\Http\Context $httpContext * @param \Magento\Catalog\Model\ProductFactory $productFactory * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Model\ProductFactory $productFactory, array $data = array()) { $this->httpContext = $httpContext; $this->_productFactory = $productFactory; parent::__construct($context, $data); $this->_isScopePrivate = true; }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Review\Model\Rating\Option\VoteFactory $voteFactory * @param \Magento\Review\Model\RatingFactory $ratingFactory * @param \Magento\Review\Model\ReviewFactory $reviewFactory * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Review\Model\Rating\Option\VoteFactory $voteFactory, \Magento\Review\Model\RatingFactory $ratingFactory, \Magento\Review\Model\ReviewFactory $reviewFactory, array $data = []) { $this->_voteFactory = $voteFactory; $this->_reviewFactory = $reviewFactory; $this->_ratingFactory = $ratingFactory; parent::__construct($context, $data); }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Framework\App\Http\Context $httpContext * @param \Magento\Catalog\Api\ProductRepositoryInterface $productRepository * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Api\ProductRepositoryInterface $productRepository, array $data = []) { $this->httpContext = $httpContext; $this->productRepository = $productRepository; parent::__construct($context, $data); $this->_isScopePrivate = true; }
/** * @param Context $context * @param \Magento\Catalog\Model\Resource\Product\CollectionFactory $productCollectionFactory * @param \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility * @param \Magento\Framework\App\Http\Context $httpContext * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Catalog\Model\Resource\Product\CollectionFactory $productCollectionFactory, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Framework\App\Http\Context $httpContext, array $data = []) { $this->_productCollectionFactory = $productCollectionFactory; $this->_catalogProductVisibility = $catalogProductVisibility; $this->httpContext = $httpContext; parent::__construct($context, $data); }
public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Customer\Model\Session $customerSession, array $data = []) { $this->_storeManager = $storeManager; $this->checkoutSession = $checkoutSession; $this->customerSession = $customerSession; parent::__construct($context, $data); }
/** * @param Context $context * @param \Magento\Customer\Model\Session $customerSession * @param \Magento\Customer\Helper\View $customerView * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Customer\Helper\View $customerView, array $data = array()) { $this->_customerSession = $customerSession; $this->_customerView = $customerView; parent::__construct($context, $data); $this->_isScopePrivate = true; }
/** * @param Context $context * @param \Magento\Core\Helper\PostData $postDataHelper * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory * @param \Magento\Catalog\Model\Layer $catalogLayer * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Core\Helper\PostData $postDataHelper, \Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\Catalog\Model\Layer $catalogLayer, array $data = array()) { $this->_categoryFactory = $categoryFactory; $this->_catalogLayer = $catalogLayer; $this->_postDataHelper = $postDataHelper; parent::__construct($context, $data); }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Checkout\Model\Resource\Cart $checkoutCart * @param \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility * @param \Magento\Checkout\Model\Session $checkoutSession * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Checkout\Model\Resource\Cart $checkoutCart, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Checkout\Model\Session $checkoutSession, array $data = array()) { $this->_checkoutCart = $checkoutCart; $this->_catalogProductVisibility = $catalogProductVisibility; $this->_checkoutSession = $checkoutSession; parent::__construct($context, $data); }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Catalog\Model\Product\Visibility $productVisibility * @param \Magento\Reports\Model\Product\Index\Factory $indexFactory * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Catalog\Model\Product\Visibility $productVisibility, \Magento\Reports\Model\Product\Index\Factory $indexFactory, array $data = []) { parent::__construct($context, $data); $this->_productVisibility = $productVisibility; $this->_indexFactory = $indexFactory; $this->_isScopePrivate = true; }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Core\Helper\Data $coreData * @param \Magento\Customer\Service\V1\CustomerAccountServiceInterface $accountService * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Core\Helper\Data $coreData, \Magento\Customer\Service\V1\CustomerAccountServiceInterface $accountService, array $data = array()) { $this->coreData = $coreData; $this->accountService = $accountService; parent::__construct($context, $data); $this->_isScopePrivate = true; }
/** * Basket constructor. * * @param \Magento\Store\Model\App\EmulationFactory $emulationFactory * @param \Magento\Quote\Model\QuoteFactory $quoteFactory * @param \Magento\Catalog\Block\Product\Context $context * @param \Dotdigitalgroup\Email\Helper\Data $helper * @param \Magento\Framework\Pricing\Helper\Data $priceHelper * @param array $data */ public function __construct(\Magento\Store\Model\App\EmulationFactory $emulationFactory, \Magento\Quote\Model\QuoteFactory $quoteFactory, \Magento\Catalog\Block\Product\Context $context, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\Pricing\Helper\Data $priceHelper, array $data = []) { $this->_quoteFactory = $quoteFactory; $this->helper = $helper; $this->priceHelper = $priceHelper; $this->_emulationFactory = $emulationFactory; parent::__construct($context, $data); }
/** * Wishlist constructor. * * @param \Magento\Wishlist\Model\WishlistFactory $wishlistFactory * @param \Magento\Customer\Model\CustomerFactory $customerFactory * @param \Magento\Catalog\Block\Product\Context $context * @param \Dotdigitalgroup\Email\Helper\Data $helper * @param \Magento\Framework\Pricing\Helper\Data $priceHelper * @param array $data */ public function __construct(\Magento\Wishlist\Model\WishlistFactory $wishlistFactory, \Magento\Customer\Model\CustomerFactory $customerFactory, \Magento\Catalog\Block\Product\Context $context, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\Pricing\Helper\Data $priceHelper, array $data = []) { parent::__construct($context, $data); $this->wishlistFactory = $wishlistFactory; $this->customerFactory = $customerFactory; $this->helper = $helper; $this->priceHelper = $priceHelper; }
public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, Registry $registry, array $data = []) { $this->_coreRegistry = $registry; $this->_productCollectionFactory = $productCollectionFactory; $this->_catalogConfig = $context->getCatalogConfig(); $this->_catalogProductVisibility = $catalogProductVisibility; parent::__construct($context, $data); }
/** * Push constructor. * * @param \Magento\Catalog\Model\ProductFactory $productFactory * @param \Dotdigitalgroup\Email\Helper\Data $helper * @param \Magento\Framework\Pricing\Helper\Data $priceHelper * @param \Dotdigitalgroup\Email\Helper\Recommended $recommended * @param \Magento\Catalog\Block\Product\Context $context * @param array $data */ public function __construct(\Magento\Catalog\Model\ProductFactory $productFactory, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\Pricing\Helper\Data $priceHelper, \Dotdigitalgroup\Email\Helper\Recommended $recommended, \Magento\Catalog\Block\Product\Context $context, array $data = []) { parent::__construct($context, $data); $this->helper = $helper; $this->productFactory = $productFactory; $this->recommnededHelper = $recommended; $this->priceHelper = $priceHelper; }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Checkout\Model\Resource\Cart $checkoutCart * @param \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility * @param \Magento\Checkout\Model\Session $checkoutSession * @param \Magento\Framework\Module\Manager $moduleManager * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Checkout\Model\Resource\Cart $checkoutCart, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\Module\Manager $moduleManager, array $data = []) { $this->_checkoutCart = $checkoutCart; $this->_catalogProductVisibility = $catalogProductVisibility; $this->_checkoutSession = $checkoutSession; $this->moduleManager = $moduleManager; parent::__construct($context, $data); }
/** * @param Context $context * @param \Magento\Framework\Data\Helper\PostHelper $postDataHelper * @param \Magento\Catalog\Model\Layer\Resolver $layerResolver * @param CategoryRepositoryInterface $categoryRepository * @param \Magento\Framework\Url\Helper\Data $urlHelper * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\Data\Helper\PostHelper $postDataHelper, \Magento\Catalog\Model\Layer\Resolver $layerResolver, CategoryRepositoryInterface $categoryRepository, \Magento\Framework\Url\Helper\Data $urlHelper, array $data = []) { $this->_catalogLayer = $layerResolver->get(); $this->_postDataHelper = $postDataHelper; $this->categoryRepository = $categoryRepository; $this->urlHelper = $urlHelper; parent::__construct($context, $data); }
public function __construct(\Magento\Quote\Model\QuoteFactory $quoteFactory, \Magento\Catalog\Block\Product\Context $context, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Pricing\Helper\Data $priceHelper, \Magento\Framework\ObjectManagerInterface $objectManagerInterface, array $data = []) { $this->_quoteFactory = $quoteFactory; $this->helper = $helper; $this->priceHelper = $priceHelper; $this->scopeManager = $scopeConfig; $this->objectManager = $objectManagerInterface; parent::__construct($context, $data); }
/** * Order constructor. * * @param \Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection * @param \Magento\Review\Model\ReviewFactory $reviewFactory * @param \Magento\Sales\Model\OrderFactory $orderFactory * @param \Dotdigitalgroup\Email\Helper\Data $helper * @param \Magento\Framework\Pricing\Helper\Data $priceHelper * @param \Magento\Catalog\Block\Product\Context $context * @param array $data */ public function __construct(\Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection, \Magento\Review\Model\ReviewFactory $reviewFactory, \Magento\Sales\Model\OrderFactory $orderFactory, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\Pricing\Helper\Data $priceHelper, \Magento\Catalog\Block\Product\Context $context, array $data = []) { $this->productCollection = $productCollection; $this->reviewFactory = $reviewFactory; $this->orderFactory = $orderFactory; $this->helper = $helper; $this->priceHelper = $priceHelper; parent::__construct($context, $data); }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Catalog\Api\ProductRepositoryInterface $productRepository * @param \Magento\Review\Model\ReviewFactory $reviewFactory * @param \Magento\Review\Model\Rating\Option\VoteFactory $voteFactory * @param \Magento\Review\Model\RatingFactory $ratingFactory * @param \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Catalog\Api\ProductRepositoryInterface $productRepository, \Magento\Review\Model\ReviewFactory $reviewFactory, \Magento\Review\Model\Rating\Option\VoteFactory $voteFactory, \Magento\Review\Model\RatingFactory $ratingFactory, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, array $data = []) { $this->productRepository = $productRepository; $this->_reviewFactory = $reviewFactory; $this->_voteFactory = $voteFactory; $this->_ratingFactory = $ratingFactory; $this->currentCustomer = $currentCustomer; parent::__construct($context, $data); }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory * @param \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility * @param \Magento\Framework\App\Http\Context $httpContext * @param \Magento\Rule\Model\Condition\Sql\Builder $sqlBuilder * @param \Magento\CatalogWidget\Model\Rule $rule * @param \Magento\Widget\Helper\Conditions $conditionsHelper * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Framework\App\Http\Context $httpContext, \Magento\Rule\Model\Condition\Sql\Builder $sqlBuilder, \Magento\CatalogWidget\Model\Rule $rule, \Magento\Widget\Helper\Conditions $conditionsHelper, array $data = []) { $this->productCollectionFactory = $productCollectionFactory; $this->catalogProductVisibility = $catalogProductVisibility; $this->httpContext = $httpContext; $this->sqlBuilder = $sqlBuilder; $this->rule = $rule; $this->conditionsHelper = $conditionsHelper; parent::__construct($context, $data); }
public function __construct(\Dotdigitalgroup\Email\Helper\Data $helper, \Dotdigitalgroup\Email\Helper\Recommended $recommendedHelper, \Magento\Framework\Pricing\Helper\Data $priceHelper, \Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\ObjectManagerInterface $objectManagerInterface, array $data = []) { parent::__construct($context, $data); $this->helper = $helper; $this->_recommendedHelper = $recommendedHelper; $this->priceHelper = $priceHelper; $this->scopeManager = $scopeConfig; $this->storeManager = $this->_storeManager; $this->objectManager = $objectManagerInterface; }
/** * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Checkout\Model\Session $checkoutSession * @param \Magento\Catalog\Model\Product\Visibility $productVisibility * @param \Magento\Catalog\Model\Product\LinkFactory $productLinkFactory * @param \Magento\Quote\Model\Quote\Item\RelatedProducts $itemRelationsList * @param StockHelper $stockHelper * @param array $data * * @codeCoverageIgnore * @SuppressWarnings(PHPMD.ExcessiveParameterList) */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Catalog\Model\Product\Visibility $productVisibility, \Magento\Catalog\Model\Product\LinkFactory $productLinkFactory, \Magento\Quote\Model\Quote\Item\RelatedProducts $itemRelationsList, StockHelper $stockHelper, array $data = []) { $this->_checkoutSession = $checkoutSession; $this->_productVisibility = $productVisibility; $this->_productLinkFactory = $productLinkFactory; $this->_itemRelationsList = $itemRelationsList; $this->stockHelper = $stockHelper; parent::__construct($context, $data); $this->_isScopePrivate = true; }
public function __construct(\Magento\Sales\Model\OrderFactory $orderFactory, \Dotdigitalgroup\Email\Model\Apiconnector\ClientFactory $clientFactory, \Magento\Catalog\Model\ProductFactory $productFactory, \Dotdigitalgroup\Email\Helper\Recommended $recommended, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\Pricing\Helper\Data $priceHelper, \Magento\Catalog\Block\Product\Context $context, array $data = []) { parent::__construct($context, $data); $this->_orderFactory = $orderFactory; $this->_clientFactory = $clientFactory; $this->recommendedHelper = $recommended; $this->_productFactory = $productFactory; $this->helper = $helper; $this->priceHelper = $priceHelper; $this->storeManager = $this->_storeManager; }
/** * Quoteproducts constructor. * * @param \Magento\Quote\Model\QuoteFactory $quoteFactory * @param \Dotdigitalgroup\Email\Helper\Data $helper * @param \Magento\Catalog\Model\ProductFactory $productFactory * @param \Dotdigitalgroup\Email\Helper\Recommended $recommendedHelper * @param \Magento\Framework\Pricing\Helper\Data $priceHelper * @param \Magento\Catalog\Block\Product\Context $context * @param array $data */ public function __construct(\Magento\Quote\Model\QuoteFactory $quoteFactory, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Catalog\Model\ProductFactory $productFactory, \Dotdigitalgroup\Email\Helper\Recommended $recommendedHelper, \Magento\Framework\Pricing\Helper\Data $priceHelper, \Magento\Catalog\Block\Product\Context $context, array $data = []) { parent::__construct($context, $data); $this->helper = $helper; $this->_productFactory = $productFactory; $this->_quoteFactory = $quoteFactory; $this->_recommendedHelper = $recommendedHelper; $this->priceHelper = $priceHelper; //$this->scopeManager = $scopeConfig; $this->storeManager = $this->_storeManager; }
/** * Recentlyviewed constructor. * * @param \Magento\Catalog\Model\ProductFactory $productFactory * @param \Magento\Customer\Model\SessionFactory $sessionFactory * @param \Dotdigitalgroup\Email\Helper\Data $helper * @param \Magento\Framework\Pricing\Helper\Data $priceHelper * @param \Dotdigitalgroup\Email\Helper\Recommended $recommended * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Reports\Block\Product\Viewed $viewed * @param array $data */ public function __construct(\Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Customer\Model\SessionFactory $sessionFactory, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\Pricing\Helper\Data $priceHelper, \Dotdigitalgroup\Email\Helper\Recommended $recommended, \Magento\Catalog\Block\Product\Context $context, \Magento\Reports\Block\Product\Viewed $viewed, array $data = []) { parent::__construct($context, $data); $this->sessionFactory = $sessionFactory; $this->helper = $helper; $this->recommnededHelper = $recommended; $this->priceHelper = $priceHelper; $this->storeManager = $this->_storeManager; $this->productFactory = $productFactory; $this->viewed = $viewed; }
/** * Bestsellers constructor. * * @param \Dotdigitalgroup\Email\Helper\Data $helper * @param \Magento\Framework\Pricing\Helper\Data $priceHelper * @param \Dotdigitalgroup\Email\Helper\Recommended $recommended * @param \Magento\Framework\Stdlib\DateTime\DateTime $dateTime * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\CatalogInventory\Model\StockFactory $stockFactory * @param \Magento\Reports\Model\ResourceModel\Product\Sold\CollectionFactory $productSoldFactory * @param array $data */ public function __construct(\Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\Pricing\Helper\Data $priceHelper, \Dotdigitalgroup\Email\Helper\Recommended $recommended, \Magento\Framework\Stdlib\DateTime\DateTime $dateTime, \Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\Catalog\Block\Product\Context $context, \Magento\CatalogInventory\Model\StockFactory $stockFactory, \Magento\Reports\Model\ResourceModel\Product\Sold\CollectionFactory $productSoldFactory, array $data = []) { $this->helper = $helper; $this->_dateTime = $dateTime; $this->priceHelper = $priceHelper; $this->_stockFactory = $stockFactory; $this->recommnededHelper = $recommended; $this->_categoryFactory = $categoryFactory; $this->_productSoldFactory = $productSoldFactory; $this->storeManager = $this->_storeManager; parent::__construct($context, $data); }
/** * Mostviewed constructor. * * @param \Dotdigitalgroup\Email\Helper\Data $helper * @param \Magento\Catalog\Block\Product\Context $context * @param \Magento\Framework\Pricing\Helper\Data $priceHelper * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory * @param \Magento\Catalog\Model\ProductFactory $productFactory * @param \Dotdigitalgroup\Email\Helper\Recommended $recommended * @param \Magento\Catalog\Model\CategoryFactory $categtoryFactory * @param \Magento\Framework\App\ResourceConnection $resourceConnection * @param \Magento\Reports\Model\ResourceModel\Product\CollectionFactory $reportProductCollection * @param array $data */ public function __construct(\Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Catalog\Block\Product\Context $context, \Magento\Framework\Pricing\Helper\Data $priceHelper, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, \Magento\Catalog\Model\ProductFactory $productFactory, \Dotdigitalgroup\Email\Helper\Recommended $recommended, \Magento\Catalog\Model\CategoryFactory $categtoryFactory, \Magento\Framework\App\ResourceConnection $resourceConnection, \Magento\Reports\Model\ResourceModel\Product\CollectionFactory $reportProductCollection, array $data = []) { $this->coreResource = $resourceConnection; $this->productCollectionFactory = $productCollectionFactory; $this->productFactory = $productFactory; $this->categoryFactory = $categtoryFactory; $this->reportProductCollection = $reportProductCollection; $this->helper = $helper; $this->recommnededHelper = $recommended; $this->priceHelper = $priceHelper; parent::__construct($context, $data); }
/** * @param Context $context * @param \Magento\Framework\Url\EncoderInterface $urlEncoder * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder * @param \Magento\Framework\Stdlib\StringUtils $string * @param \Magento\Catalog\Helper\Product $productHelper * @param \Magento\Catalog\Model\ProductTypes\ConfigInterface $productTypeConfig * @param \Magento\Framework\Locale\FormatInterface $localeFormat * @param \Magento\Customer\Model\Session $customerSession * @param ProductRepositoryInterface|\Magento\Framework\Pricing\PriceCurrencyInterface $productRepository * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency * @param array $data * @codingStandardsIgnoreStart * @SuppressWarnings(PHPMD.ExcessiveParameterList) */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\Url\EncoderInterface $urlEncoder, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Framework\Stdlib\StringUtils $string, \Magento\Catalog\Helper\Product $productHelper, \Magento\Catalog\Model\ProductTypes\ConfigInterface $productTypeConfig, \Magento\Framework\Locale\FormatInterface $localeFormat, \Magento\Customer\Model\Session $customerSession, ProductRepositoryInterface $productRepository, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, array $data = []) { $this->_productHelper = $productHelper; $this->urlEncoder = $urlEncoder; $this->_jsonEncoder = $jsonEncoder; $this->productTypeConfig = $productTypeConfig; $this->string = $string; $this->_localeFormat = $localeFormat; $this->customerSession = $customerSession; $this->productRepository = $productRepository; $this->priceCurrency = $priceCurrency; parent::__construct($context, $data); }