Пример #1
0
 /**
  * Type constructor.
  *
  * @param \Magento\Eav\Model\ConfigFactory                       $configFactory
  * @param \Magento\SalesRule\Model\Rule\Condition\ProductFactory $productFactory
  */
 public function __construct(\Magento\Eav\Model\ConfigFactory $configFactory, \Magento\SalesRule\Model\Rule\Condition\ProductFactory $productFactory)
 {
     $this->_configFactory = $configFactory->create();
     $this->_productFactory = $productFactory->create();
 }
 public function __construct(\Magento\Eav\Model\ConfigFactory $configFactory, \Magento\SalesRule\Model\Rule\Condition\ProductFactory $productFactory, \Magento\Framework\ObjectManagerInterface $objectManagerInterface)
 {
     $this->_configFactory = $configFactory->create();
     $this->_objectManager = $objectManagerInterface;
     $this->_productFactory = $productFactory->create();
 }