1 | <?php |
||
33 | class Index extends Action |
||
34 | { |
||
35 | /** |
||
36 | * @var ListingPageProcessorInterface |
||
37 | */ |
||
38 | private $listingPageProcessor; |
||
39 | |||
40 | /** |
||
41 | * @var RootCategoryProviderInterface |
||
42 | */ |
||
43 | private $rootCategoryProvider; |
||
44 | |||
45 | /** |
||
46 | * @var Resolver |
||
47 | */ |
||
48 | private $layerResolver; |
||
49 | |||
50 | /** |
||
51 | * @var Session |
||
52 | */ |
||
53 | private $catalogSession; |
||
54 | |||
55 | /** |
||
56 | * @var ForwardFactory |
||
57 | */ |
||
58 | private $resultForwardFactory; |
||
59 | |||
60 | /** |
||
61 | * @var PageFactory |
||
62 | */ |
||
63 | private $resultPageFactory; |
||
64 | |||
65 | /** |
||
66 | * @var Registry |
||
67 | */ |
||
68 | private $registry; |
||
69 | |||
70 | /** |
||
71 | * Index constructor. |
||
72 | * @param ListingPageProcessorInterface $listingPageProcessor |
||
73 | * @param RootCategoryProviderInterface $rootCategoryProvider |
||
74 | * @param Resolver $layerResolver |
||
75 | * @param Session $catalogSession |
||
76 | * @param Context $context |
||
77 | * @param ForwardFactory $resultForwardFactory |
||
78 | * @param Registry $registry |
||
79 | * @param PageFactory $resultPageFactory |
||
80 | */ |
||
81 | public function __construct( |
||
100 | |||
101 | /** |
||
102 | * @return CategoryInterface |
||
103 | * @throws NoSuchEntityException |
||
104 | */ |
||
105 | private function initRootCategory() : CategoryInterface |
||
117 | |||
118 | /** |
||
119 | * @return ResponseInterface|ResultInterface|Page |
||
120 | */ |
||
121 | public function execute() |
||
136 | } |
||
137 |