/**
  * @param Context $context
  * @param ArrayUtils $arrayUtils
  * @param EncoderInterface $jsonEncoder
  * @param Data $helper
  * @param CatalogProduct $catalogProduct
  * @param CurrentCustomer $currentCustomer
  * @param PriceCurrencyInterface $priceCurrency
  * @param ConfigurableAttributeData $configurableAttributeData
  * @param SwatchData $swatchHelper
  * @param Media $swatchMediaHelper
  * @param array $data other data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(Context $context, ArrayUtils $arrayUtils, EncoderInterface $jsonEncoder, Data $helper, CatalogProduct $catalogProduct, CurrentCustomer $currentCustomer, PriceCurrencyInterface $priceCurrency, ConfigurableAttributeData $configurableAttributeData, SwatchData $swatchHelper, Media $swatchMediaHelper, array $data = [])
 {
     $this->swatchHelper = $swatchHelper;
     $this->swatchMediaHelper = $swatchMediaHelper;
     parent::__construct($context, $arrayUtils, $jsonEncoder, $helper, $catalogProduct, $currentCustomer, $priceCurrency, $configurableAttributeData, $data);
 }
Ejemplo n.º 2
0
 public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\Stdlib\ArrayUtils $arrayUtils, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\ConfigurableProduct\Helper\Data $helper, \Magento\Catalog\Helper\Product $catalogProduct, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, \Magento\ConfigurableProduct\Model\ConfigurableAttributeData $configurableAttributeData, array $data = array())
 {
     $this->___init();
     parent::__construct($context, $arrayUtils, $jsonEncoder, $helper, $catalogProduct, $currentCustomer, $priceCurrency, $configurableAttributeData, $data);
 }