/** * @param \Magento\Catalog\Block\Product\Context $context * @param \UOL\PagSeguro\Model\Direct\InstallmentsMethodFactory $installmentFactory */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfigInterface, \UOL\PagSeguro\Model\Direct\InstallmentsMethodFactory $installmentFactory) { $this->_coreRegistry = $context->getRegistry(); $this->_scopeConfig = $scopeConfigInterface; $this->_installmentFactory = $installmentFactory; parent::__construct($context); }
/** * BxRecommendationBlock constructor. * @param \Magento\Catalog\Block\Product\Context $context * @param \Boxalino\Intelligence\Helper\P13n\Adapter $p13nHelper * @param \Boxalino\Intelligence\Helper\Data $bxHelperData * @param \Magento\Checkout\Model\Session $checkoutSession * @param \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility * @param \Magento\Catalog\Model\ResourceModel\Product\Link\Product\CollectionFactory $factory * @param \Magento\Framework\App\Request\Http $request * @param \Psr\Log\LoggerInterface $logger * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, \Boxalino\Intelligence\Helper\P13n\Adapter $p13nHelper, \Boxalino\Intelligence\Helper\Data $bxHelperData, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Catalog\Model\ResourceModel\Product\Link\Product\CollectionFactory $factory, \Magento\Framework\App\Request\Http $request, \Psr\Log\LoggerInterface $logger, array $data) { $this->_logger = $logger; $this->bxHelperData = $bxHelperData; $this->_catalogProductVisibility = $catalogProductVisibility; $this->factory = $factory; $this->registry = $context->getRegistry(); $this->p13nHelper = $p13nHelper; $this->config = $context->getScopeConfig(); $this->_checkoutSession = $checkoutSession; $this->_data = $data; $this->othersWidgetConfig = $this->config->getValue('bxRecommendations/others', $this->scopeStore); parent::__construct($context, $data); }
/** * @param Context $context * @param array $data */ public function __construct(\Magento\Catalog\Block\Product\Context $context, array $data = []) { $this->_imageHelper = $context->getImageHelper(); $this->imageBuilder = $context->getImageBuilder(); $this->_compareProduct = $context->getCompareProduct(); $this->_wishlistHelper = $context->getWishlistHelper(); $this->_cartHelper = $context->getCartHelper(); $this->_catalogConfig = $context->getCatalogConfig(); $this->_coreRegistry = $context->getRegistry(); $this->_taxData = $context->getTaxData(); $this->_mathRandom = $context->getMathRandom(); $this->reviewRenderer = $context->getReviewRenderer(); $this->stockRegistry = $context->getStockRegistry(); parent::__construct($context, $data); }
/** * @param Context $context */ public function __construct(Context $context) { $this->registry = $context->getRegistry(); parent::__construct($context); }