|
23 | 23 | use Magento\Framework\Locale\Format;
|
24 | 24 | use Algolia\AlgoliaSearch\Registry\CurrentProduct;
|
25 | 25 | use Magento\Framework\Stdlib\DateTime\DateTime;
|
26 |
| -use Magento\Framework\Url\Helper\Data; |
| 26 | +use Magento\Framework\Url\Helper\Data as UrlHelper; |
27 | 27 | use Magento\Framework\View\Element\Template;
|
28 | 28 | use Magento\Framework\View\Element\Template\Context;
|
29 | 29 | use Magento\Sales\Model\Order;
|
30 | 30 | use Magento\Search\Helper\Data as CatalogSearchHelper;
|
31 | 31 |
|
32 | 32 | class Algolia extends Template implements CollectionDataSourceInterface
|
33 | 33 | {
|
34 |
| - /** |
35 |
| - * @var ConfigHelper |
36 |
| - */ |
37 |
| - protected $config; |
38 |
| - /** |
39 |
| - * @var CatalogSearchHelper |
40 |
| - */ |
41 |
| - protected $catalogSearchHelper; |
42 |
| - /** |
43 |
| - * @var CurrentProduct |
44 |
| - */ |
45 |
| - protected $currentProduct; |
46 |
| - /** |
47 |
| - * @var ProductHelper |
48 |
| - */ |
49 |
| - protected $productHelper; |
50 |
| - /** |
51 |
| - * @var Currency |
52 |
| - */ |
53 |
| - protected $currency; |
54 |
| - /** |
55 |
| - * @var Format |
56 |
| - */ |
57 |
| - protected $format; |
58 |
| - /** |
59 |
| - * @var AlgoliaHelper |
60 |
| - */ |
61 |
| - protected $algoliaHelper; |
62 |
| - /** |
63 |
| - * @var Data |
64 |
| - */ |
65 |
| - protected $urlHelper; |
66 |
| - /** |
67 |
| - * @var FormKey |
68 |
| - */ |
69 |
| - protected $formKey; |
70 |
| - /** |
71 |
| - * @var HttpContext |
72 |
| - */ |
73 |
| - protected $httpContext; |
74 |
| - /** |
75 |
| - * @var CoreHelper |
76 |
| - */ |
77 |
| - protected $coreHelper; |
78 |
| - /** |
79 |
| - * @var CategoryHelper |
80 |
| - */ |
81 |
| - protected $categoryHelper; |
82 |
| - /** |
83 |
| - * @var SuggestionHelper |
84 |
| - */ |
85 |
| - protected $suggestionHelper; |
86 |
| - /** |
87 |
| - * @var LandingPageHelper |
88 |
| - */ |
89 |
| - protected $landingPageHelper; |
90 |
| - /** |
91 |
| - * @var PersonalizationHelper |
92 |
| - */ |
93 |
| - protected $personalizationHelper; |
94 |
| - /** |
95 |
| - * @var CheckoutSession |
96 |
| - */ |
97 |
| - protected $checkoutSession; |
98 |
| - /** |
99 |
| - * @var DateTime |
100 |
| - */ |
101 |
| - protected $date; |
102 |
| - |
103 |
| - /** @var CurrentCategory */ |
104 |
| - protected CurrentCategory $currentCategory; |
105 |
| - |
106 | 34 | protected $priceKey;
|
107 | 35 |
|
108 |
| - /** |
109 |
| - * @param SortingTransformer $sortingTransformer |
110 |
| - * @param Context $context |
111 |
| - * @param ConfigHelper $config |
112 |
| - * @param CatalogSearchHelper $catalogSearchHelper |
113 |
| - * @param ProductHelper $productHelper |
114 |
| - * @param Currency $currency |
115 |
| - * @param Format $format |
116 |
| - * @param CurrentProduct $currentProduct |
117 |
| - * @param AlgoliaHelper $algoliaHelper |
118 |
| - * @param Data $urlHelper |
119 |
| - * @param FormKey $formKey |
120 |
| - * @param HttpContext $httpContext |
121 |
| - * @param CoreHelper $coreHelper |
122 |
| - * @param CategoryHelper $categoryHelper |
123 |
| - * @param SuggestionHelper $suggestionHelper |
124 |
| - * @param LandingPageHelper $landingPageHelper |
125 |
| - * @param PersonalizationHelper $personalizationHelper |
126 |
| - * @param CheckoutSession $checkoutSession |
127 |
| - * @param DateTime $date |
128 |
| - * @param CurrentCategory $currentCategory |
129 |
| - * @param array $data |
130 |
| - */ |
131 | 36 | public function __construct(
|
132 |
| - protected SortingTransformer $sortingTransformer, |
133 |
| - Template\Context $context, |
134 |
| - ConfigHelper $config, |
135 |
| - CatalogSearchHelper $catalogSearchHelper, |
136 |
| - ProductHelper $productHelper, |
137 |
| - Currency $currency, |
138 |
| - Format $format, |
139 |
| - CurrentProduct $currentProduct, |
140 |
| - AlgoliaHelper $algoliaHelper, |
141 |
| - Data $urlHelper, |
142 |
| - FormKey $formKey, |
143 |
| - HttpContext $httpContext, |
144 |
| - CoreHelper $coreHelper, |
145 |
| - CategoryHelper $categoryHelper, |
146 |
| - SuggestionHelper $suggestionHelper, |
147 |
| - LandingPageHelper $landingPageHelper, |
148 |
| - PersonalizationHelper $personalizationHelper, |
149 |
| - CheckoutSession $checkoutSession, |
150 |
| - DateTime $date, |
151 |
| - CurrentCategory $currentCategory, |
152 |
| - array $data = [] |
153 |
| - ) { |
154 |
| - $this->config = $config; |
155 |
| - $this->catalogSearchHelper = $catalogSearchHelper; |
156 |
| - $this->productHelper = $productHelper; |
157 |
| - $this->currency = $currency; |
158 |
| - $this->format = $format; |
159 |
| - $this->currentProduct = $currentProduct; |
160 |
| - $this->algoliaHelper = $algoliaHelper; |
161 |
| - $this->urlHelper = $urlHelper; |
162 |
| - $this->formKey = $formKey; |
163 |
| - $this->httpContext = $httpContext; |
164 |
| - $this->coreHelper = $coreHelper; |
165 |
| - $this->categoryHelper = $categoryHelper; |
166 |
| - $this->suggestionHelper = $suggestionHelper; |
167 |
| - $this->landingPageHelper = $landingPageHelper; |
168 |
| - $this->personalizationHelper = $personalizationHelper; |
169 |
| - $this->checkoutSession = $checkoutSession; |
170 |
| - $this->date = $date; |
171 |
| - $this->currentCategory = $currentCategory; |
172 |
| - |
| 37 | + protected ConfigHelper $config, |
| 38 | + protected CatalogSearchHelper $catalogSearchHelper, |
| 39 | + protected ProductHelper $productHelper, |
| 40 | + protected Currency $currency, |
| 41 | + protected Format $format, |
| 42 | + protected CurrentProduct $currentProduct, |
| 43 | + protected AlgoliaHelper $algoliaHelper, |
| 44 | + protected UrlHelper $urlHelper, |
| 45 | + protected FormKey $formKey, |
| 46 | + protected HttpContext $httpContext, |
| 47 | + protected CoreHelper $coreHelper, |
| 48 | + protected CategoryHelper $categoryHelper, |
| 49 | + protected SuggestionHelper $suggestionHelper, |
| 50 | + protected LandingPageHelper $landingPageHelper, |
| 51 | + protected PersonalizationHelper $personalizationHelper, |
| 52 | + protected CheckoutSession $checkoutSession, |
| 53 | + protected DateTime $date, |
| 54 | + protected CurrentCategory $currentCategory, |
| 55 | + protected SortingTransformer $sortingTransformer, |
| 56 | + Template\Context $context, |
| 57 | + array $data = [] |
| 58 | + ) |
| 59 | + { |
173 | 60 | parent::__construct($context, $data);
|
174 | 61 | }
|
175 | 62 |
|
|
0 commit comments