コード例 #1
0
 /**
  * Class constructor
  *
  * @param \Magento\Framework\Model\Resource\Db\Context $context
  * @param \Magento\Eav\Model\Config $eavConfig
  * @param string|null $resourcePrefix
  */
 public function __construct(\Magento\Framework\Model\Resource\Db\Context $context, \Magento\Eav\Model\Config $eavConfig, $resourcePrefix = null)
 {
     $this->_eavConfig = $eavConfig;
     parent::__construct($context, $resourcePrefix);
 }
コード例 #2
0
ファイル: Flat.php プロジェクト: shabbirvividads/magento2
 /**
  * @param \Magento\Framework\Model\Resource\Db\Context $context
  * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory
  * @param CollectionFactory $categoryCollectionFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Config $catalogConfig
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param string|null $resourcePrefix
  */
 public function __construct(\Magento\Framework\Model\Resource\Db\Context $context, \Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\Catalog\Model\Resource\Category\CollectionFactory $categoryCollectionFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Config $catalogConfig, \Magento\Framework\Event\ManagerInterface $eventManager, $resourcePrefix = null)
 {
     $this->_categoryFactory = $categoryFactory;
     $this->_categoryCollectionFactory = $categoryCollectionFactory;
     $this->_storeManager = $storeManager;
     $this->_catalogConfig = $catalogConfig;
     $this->_eventManager = $eventManager;
     parent::__construct($context, $resourcePrefix);
 }
コード例 #3
0
ファイル: AbstractIndexer.php プロジェクト: nja78/magento2
 /**
  * Class constructor
  *
  * @param \Magento\Framework\Model\Resource\Db\Context $context
  * @param \Magento\Indexer\Model\Indexer\Table\StrategyInterface $tableStrategy
  * @param \Magento\Eav\Model\Config $eavConfig
  * @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, $resourcePrefix = null)
 {
     $this->_eavConfig = $eavConfig;
     parent::__construct($context, $tableStrategy, $resourcePrefix);
 }