Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Category.php
Go to the documentation of this file.
1 <?php
8 
11 
13 {
24  public function __construct(
25  ContextInterface $context,
26  StateFactory $layerStateFactory,
27  \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $attributeCollectionFactory,
28  \Magento\Catalog\Model\ResourceModel\Product $catalogProduct,
30  \Magento\Framework\Registry $registry,
32  array $data = []
33  ) {
34  parent::__construct(
35  $context,
36  $layerStateFactory,
37  $attributeCollectionFactory,
38  $catalogProduct,
40  $registry,
42  $data
43  );
44  }
45 }
$storeManager
__construct(ContextInterface $context, StateFactory $layerStateFactory, \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $attributeCollectionFactory, \Magento\Catalog\Model\ResourceModel\Product $catalogProduct, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Registry $registry, CategoryRepositoryInterface $categoryRepository, array $data=[])
Definition: Category.php:24