示例#1
0
文件: Rows.php 项目: aiesh/magento2
 /**
  * @param \Magento\Framework\App\Resource $resource
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Resource\Helper $resourceHelper
  * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory
  */
 public function __construct(\Magento\Framework\App\Resource $resource, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Resource\Helper $resourceHelper, \Magento\Catalog\Model\CategoryFactory $categoryFactory)
 {
     $this->categoryFactory = $categoryFactory;
     parent::__construct($resource, $storeManager, $resourceHelper);
 }
 /**
  * @param \Magento\Framework\App\ResourceConnection $resource
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\ResourceModel\Helper $resourceHelper
  * @param MetadataPool $metadataPool
  * @param array $skipStaticColumns
  * @param CategoryRepositoryInterface $categoryRepository
  */
 public function __construct(\Magento\Framework\App\ResourceConnection $resource, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\ResourceModel\Helper $resourceHelper, MetadataPool $metadataPool, CategoryRepositoryInterface $categoryRepository, $skipStaticColumns = [])
 {
     $this->categoryRepository = $categoryRepository;
     parent::__construct($resource, $storeManager, $resourceHelper, $metadataPool, $skipStaticColumns);
 }