Example #1
0
 /**
  * @param Context $context
  * @param Image $image
  * @param Config $catalogProductMediaConfig
  * @param ProductFactory $productFactory
  */
 public function __construct(Context $context, Image $image, Config $catalogProductMediaConfig, ProductFactory $productFactory)
 {
     parent::__construct($context);
     $this->image = $image;
     $this->productFactory = $productFactory;
     $this->catalogProductMediaConfig = $catalogProductMediaConfig;
 }
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Registry $registry)
 {
     parent::__construct($context);
     $this->registry = $registry;
 }
Example #3
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Helper\Image $image
  * @param \Magento\ConfigurableProduct\Model\Product\VariationMediaAttributes $variationMediaAttributes
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Image $image, \Magento\ConfigurableProduct\Model\Product\VariationMediaAttributes $variationMediaAttributes)
 {
     parent::__construct($context);
     $this->image = $image;
     $this->variationMediaAttributes = $variationMediaAttributes;
 }
Example #4
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Helper\Image $image
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Image $image)
 {
     parent::__construct($context);
     $this->image = $image;
 }
Example #5
0
 /**
  * @param Context $context
  * @param Image $image
  * @param \Magento\ConfigurableProduct\Model\Product\VariationMediaAttributes $variationMediaAttributes
  */
 public function __construct(Context $context, Image $image, \Magento\ConfigurableProduct\Model\Product\VariationMediaAttributes $variationMediaAttributes)
 {
     parent::__construct($context);
     $this->image = $image;
     $this->variationMediaAttributes = $variationMediaAttributes;
 }