Пример #1
0
 public function __construct(\Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\Framework\App\ResourceConnection $resourceConnection, \Magento\Store\Model\StoreFactory $storeFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\ObjectManagerInterface $objectManager, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Framework\App\Helper\Context $context)
 {
     $this->categoryFactory = $categoryFactory;
     $this->resourceConnection = $resourceConnection;
     $this->storeFactory = $storeFactory;
     $this->storeManager = $storeManager;
     parent::__construct($objectManager, $helperFactory, $context);
 }
Пример #2
0
 public function __construct(\Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Catalog\Model\ResourceModel\Product $productResource, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productColFactory, \Magento\Eav\Model\Entity\Attribute\SetFactory $entityAttributeSetFactory, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $entityAttributeSetColFactory, \Magento\Framework\App\ResourceConnection $resourceConnection, \Magento\Framework\ObjectManagerInterface $objectManager, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Framework\App\Helper\Context $context)
 {
     $this->productFactory = $productFactory;
     $this->productResource = $productResource;
     $this->productColFactory = $productColFactory;
     $this->entityAttributeSetFactory = $entityAttributeSetFactory;
     $this->entityAttributeSetColFactory = $entityAttributeSetColFactory;
     $this->resourceConnection = $resourceConnection;
     parent::__construct($objectManager, $helperFactory, $context);
 }