示例#1
0
 /**
  * Construct
  *
  * @param \Magento\Framework\App\Resource $resource
  * @param \Magento\Eav\Model\Config $eavConfig
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Catalog\Model\Resource\Helper $resourceHelper
  */
 public function __construct(\Magento\Framework\App\Resource $resource, \Magento\Eav\Model\Config $eavConfig, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Catalog\Model\Resource\Helper $resourceHelper)
 {
     $this->_resourceHelper = $resourceHelper;
     parent::__construct($resource, $eavConfig, $eventManager);
 }
示例#2
0
文件: Source.php 项目: nja78/magento2
 /**
  * Construct
  *
  * @param \Magento\Framework\Model\Resource\Db\Context $context
  * @param \Magento\Indexer\Model\Indexer\Table\StrategyInterface $tableStrategy
  * @param \Magento\Eav\Model\Config $eavConfig
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Catalog\Model\Resource\Helper $resourceHelper
  * @param string|null $resourcePrefix
  */
 public function __construct(\Magento\Framework\Model\Resource\Db\Context $context, \Magento\Indexer\Model\Indexer\Table\StrategyInterface $tableStrategy, \Magento\Eav\Model\Config $eavConfig, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Catalog\Model\Resource\Helper $resourceHelper, $resourcePrefix = null)
 {
     $this->_resourceHelper = $resourceHelper;
     parent::__construct($context, $tableStrategy, $eavConfig, $eventManager, $resourcePrefix);
 }