/** * 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); }
/** * 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); }