CatalogDependencyProvider   A
last analyzed

Complexity

Total Complexity 20

Size/Duplication

Total Lines 295
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 20
eloc 107
dl 0
loc 295
rs 10
c 0
b 0
f 0

20 Methods

Rating   Name   Duplication   Size   Complexity  
A getFacetConfigTransferBuilderPluginVariants() 0 9 1
A createProductConcreteCatalogSearchQueryPluginVariants() 0 4 1
A createCatalogSearchQueryPlugin() 0 3 1
A getProductConcreteCatalogSearchResultFormatterPlugins() 0 4 1
A createCatalogSearchResultFormatterPluginVariants() 0 12 1
A createSuggestionResultFormatterPlugins() 0 8 1
A createCatalogSearchQueryExpanderPlugins() 0 20 1
A createCatalogSearchCountQueryExpanderPluginVariants() 0 5 1
A createCatalogSearchQueryExpanderPluginVariants() 0 7 1
A createCatalogSearchCountQueryExpanderPlugins() 0 9 1
A getProductConcreteCatalogSearchQueryExpanderPlugins() 0 9 1
A createSuggestionResultFormatterPluginVariants() 0 10 1
A getSearchResultCountPlugins() 0 4 1
A createCatalogSearchQueryPluginVariants() 0 4 1
A getSortConfigTransferBuilderPlugins() 0 8 1
A getFacetConfigTransferBuilderPlugins() 0 7 1
A createCatalogSearchResultFormatterPlugins() 0 11 1
A createProductConcreteCatalogSearchResultFormatterPluginVariants() 0 5 1
A createSuggestionQueryPluginVariants() 0 4 1
A createSuggestionQueryExpanderPlugins() 0 11 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Client\Catalog;
11
12
use Spryker\Client\Catalog\CatalogDependencyProvider as SprykerCatalogDependencyProvider;
13
use Spryker\Client\Catalog\Plugin\ConfigTransferBuilder\AscendingNameSortConfigTransferBuilderPlugin;
14
use Spryker\Client\Catalog\Plugin\ConfigTransferBuilder\CategoryFacetConfigTransferBuilderPlugin;
15
use Spryker\Client\Catalog\Plugin\ConfigTransferBuilder\DescendingNameSortConfigTransferBuilderPlugin;
16
use Spryker\Client\Catalog\Plugin\Elasticsearch\Query\ProductCatalogSearchQueryPlugin;
17
use Spryker\Client\Catalog\Plugin\Elasticsearch\QueryExpander\PaginatedProductConcreteCatalogSearchQueryExpanderPlugin;
18
use Spryker\Client\Catalog\Plugin\Elasticsearch\ResultFormatter\ProductConcreteCatalogSearchResultFormatterPlugin;
19
use Spryker\Client\Catalog\Plugin\Elasticsearch\ResultFormatter\RawCatalogSearchResultFormatterPlugin;
20
use Spryker\Client\CatalogPriceProductConnector\Plugin\Catalog\QueryExpander\ProductPriceSearchHttpQueryExpanderPlugin;
21
use Spryker\Client\CatalogPriceProductConnector\Plugin\Catalog\ResultFormatter\CurrencyAwareCatalogSearchHttpResultFormatterPlugin;
22
use Spryker\Client\CatalogPriceProductConnector\Plugin\ConfigTransferBuilder\AscendingPriceSortConfigTransferBuilderPlugin;
23
use Spryker\Client\CatalogPriceProductConnector\Plugin\ConfigTransferBuilder\DescendingPriceSortConfigTransferBuilderPlugin;
24
use Spryker\Client\CatalogPriceProductConnector\Plugin\ConfigTransferBuilder\PriceFacetConfigTransferBuilderPlugin;
25
use Spryker\Client\CatalogPriceProductConnector\Plugin\CurrencyAwareCatalogSearchResultFormatterPlugin;
26
use Spryker\Client\CatalogPriceProductConnector\Plugin\CurrencyAwareSuggestionByTypeResultFormatter;
27
use Spryker\Client\CatalogPriceProductConnector\Plugin\ProductPriceQueryExpanderPlugin;
28
use Spryker\Client\CategoryStorage\Plugin\Catalog\ResultFormatter\CategorySuggestionsSearchHttpResultFormatterPlugin;
29
use Spryker\Client\CategoryStorage\Plugin\Catalog\ResultFormatter\CategoryTreeFilterSearchHttpResultFormatterPlugin;
30
use Spryker\Client\CategoryStorage\Plugin\Elasticsearch\ResultFormatter\CategoryTreeFilterPageSearchResultFormatterPlugin;
31
use Spryker\Client\CmsPageSearch\Plugin\Search\SearchHttp\ResultFormatter\CmsPageSuggestionsSearchHttpResultFormatterPlugin;
32
use Spryker\Client\CustomerCatalog\Plugin\Search\ProductListQueryExpanderPlugin as CustomerCatalogProductListQueryExpanderPlugin;
33
use Spryker\Client\MerchantProductOfferSearch\Plugin\Search\MerchantReferenceQueryExpanderPlugin;
34
use Spryker\Client\MerchantProductSearch\Plugin\Search\MerchantReferenceQueryExpanderPlugin as MerchantProductReferenceQueryExpanderPlugin;
35
use Spryker\Client\ProductLabelStorage\Plugin\Catalog\ProductLabelSearchHttpFacetConfigTransferBuilderPlugin;
36
use Spryker\Client\ProductLabelStorage\Plugin\ProductLabelFacetConfigTransferBuilderPlugin;
37
use Spryker\Client\ProductListSearch\Plugin\Search\ProductListQueryExpanderPlugin as ProductListSearchProductListQueryExpanderPlugin;
38
use Spryker\Client\ProductReview\Plugin\RatingFacetConfigTransferBuilderPlugin;
39
use Spryker\Client\ProductReview\Plugin\RatingSortConfigTransferBuilderPlugin;
40
use Spryker\Client\Search\Dependency\Plugin\QueryInterface;
41
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\CompletionQueryExpanderPlugin;
42
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\FacetQueryExpanderPlugin;
43
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\IsActiveInDateRangeQueryExpanderPlugin;
44
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\IsActiveQueryExpanderPlugin;
45
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\LocalizedQueryExpanderPlugin;
46
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\PaginatedQueryExpanderPlugin;
47
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\SortedCategoryQueryExpanderPlugin;
48
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\SortedQueryExpanderPlugin;
49
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\SpellingSuggestionQueryExpanderPlugin;
50
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\StoreQueryExpanderPlugin;
51
use Spryker\Client\SearchElasticsearch\Plugin\QueryExpander\SuggestionByTypeQueryExpanderPlugin;
52
use Spryker\Client\SearchElasticsearch\Plugin\ResultFormatter\CompletionResultFormatterPlugin;
53
use Spryker\Client\SearchElasticsearch\Plugin\ResultFormatter\FacetResultFormatterPlugin;
54
use Spryker\Client\SearchElasticsearch\Plugin\ResultFormatter\PaginatedResultFormatterPlugin;
55
use Spryker\Client\SearchElasticsearch\Plugin\ResultFormatter\SortedResultFormatterPlugin;
56
use Spryker\Client\SearchElasticsearch\Plugin\ResultFormatter\SpellingSuggestionResultFormatterPlugin;
57
use Spryker\Client\SearchElasticsearch\Plugin\ResultFormatter\SuggestionByTypeResultFormatterPlugin;
58
use Spryker\Client\SearchHttp\Plugin\Catalog\Query\ProductConcreteSearchHttpQueryPlugin;
59
use Spryker\Client\SearchHttp\Plugin\Catalog\Query\SearchHttpQueryPlugin;
60
use Spryker\Client\SearchHttp\Plugin\Catalog\Query\SuggestionSearchHttpQueryPlugin;
61
use Spryker\Client\SearchHttp\Plugin\Catalog\QueryExpander\BasicSearchHttpQueryExpanderPlugin;
62
use Spryker\Client\SearchHttp\Plugin\Catalog\QueryExpander\FacetSearchHttpQueryExpanderPlugin;
63
use Spryker\Client\SearchHttp\Plugin\Catalog\ResultFormatter\CompletionSearchHttpResultFormatterPlugin;
64
use Spryker\Client\SearchHttp\Plugin\Catalog\ResultFormatter\FacetSearchHttpResultFormatterPlugin;
65
use Spryker\Client\SearchHttp\Plugin\Catalog\ResultFormatter\PaginationSearchHttpResultFormatterPlugin;
66
use Spryker\Client\SearchHttp\Plugin\Catalog\ResultFormatter\ProductSearchHttpResultFormatterPlugin;
67
use Spryker\Client\SearchHttp\Plugin\Catalog\ResultFormatter\ProductSuggestionSearchHttpResultFormatterPlugin;
68
use Spryker\Client\SearchHttp\Plugin\Catalog\ResultFormatter\SortSearchHttpResultFormatterPlugin;
69
use Spryker\Client\SearchHttp\Plugin\Catalog\ResultFormatter\SpellingSuggestionSearchHttpResultFormatterPlugin;
70
use Spryker\Client\SearchHttp\Plugin\Search\ProductConcreteCatalogSearchHttpResultFormatterPlugin;
71
use Spryker\Client\SearchHttp\Plugin\Search\SearchHttpSearchResultCountPlugin;
72
use Spryker\Shared\SearchHttp\SearchHttpConfig;
73
use SprykerFeature\Client\SelfServicePortal\Plugin\Catalog\ProductClassFacetConfigTransferBuilderPlugin;
74
use SprykerFeature\Client\SelfServicePortal\Plugin\Catalog\SspAssetQueryExpanderPlugin;
75
76
class CatalogDependencyProvider extends SprykerCatalogDependencyProvider
77
{
78
    /**
79
     * @return array<\Spryker\Client\Catalog\Dependency\Plugin\FacetConfigTransferBuilderPluginInterface>
80
     */
81
    protected function getFacetConfigTransferBuilderPlugins(): array
82
    {
83
        return [
84
            new CategoryFacetConfigTransferBuilderPlugin(),
85
            new RatingFacetConfigTransferBuilderPlugin(),
86
            new ProductLabelFacetConfigTransferBuilderPlugin(),
87
            new ProductClassFacetConfigTransferBuilderPlugin(),
88
        ];
89
    }
90
91
    /**
92
     * @return array<\Spryker\Client\Catalog\Dependency\Plugin\SortConfigTransferBuilderPluginInterface>
93
     */
94
    protected function getSortConfigTransferBuilderPlugins(): array
95
    {
96
        return [
97
            new RatingSortConfigTransferBuilderPlugin(),
98
            new AscendingNameSortConfigTransferBuilderPlugin(),
99
            new DescendingNameSortConfigTransferBuilderPlugin(),
100
            new AscendingPriceSortConfigTransferBuilderPlugin(),
101
            new DescendingPriceSortConfigTransferBuilderPlugin(),
102
        ];
103
    }
104
105
    /**
106
     * @phpstan-return \Spryker\Client\SearchExtension\Dependency\Plugin\QueryInterface
107
     *
108
     * @return \Spryker\Client\Search\Dependency\Plugin\QueryInterface
109
     */
110
    protected function createCatalogSearchQueryPlugin(): QueryInterface
111
    {
112
        return new ProductCatalogSearchQueryPlugin();
113
    }
114
115
    /**
116
     * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>|array<\Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface>
117
     */
118
    protected function createCatalogSearchQueryExpanderPlugins(): array
119
    {
120
        return [
121
            new StoreQueryExpanderPlugin(),
122
            new LocalizedQueryExpanderPlugin(),
123
            new ProductPriceQueryExpanderPlugin(),
124
            new SortedQueryExpanderPlugin(),
125
            new SortedCategoryQueryExpanderPlugin(CategoryFacetConfigTransferBuilderPlugin::PARAMETER_NAME),
126
            new PaginatedQueryExpanderPlugin(),
127
            new SpellingSuggestionQueryExpanderPlugin(),
128
            new IsActiveQueryExpanderPlugin(),
129
            new IsActiveInDateRangeQueryExpanderPlugin(),
130
            new CustomerCatalogProductListQueryExpanderPlugin(),
131
            new MerchantReferenceQueryExpanderPlugin(),
132
            new SspAssetQueryExpanderPlugin(),
133
134
            /*
135
             * FacetQueryExpanderPlugin needs to be after other query expanders which filters down the results.
136
             */
137
            new FacetQueryExpanderPlugin(),
138
        ];
139
    }
140
141
    /**
142
     * @phpstan-return array<\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface>
143
     *
144
     * @return array<\Spryker\Client\Search\Dependency\Plugin\ResultFormatterPluginInterface|\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface>
145
     */
146
    protected function createCatalogSearchResultFormatterPlugins(): array
147
    {
148
        return [
149
            new FacetResultFormatterPlugin(),
150
            new SortedResultFormatterPlugin(),
151
            new PaginatedResultFormatterPlugin(),
152
            new CurrencyAwareCatalogSearchResultFormatterPlugin(
153
                new RawCatalogSearchResultFormatterPlugin(),
154
            ),
155
            new SpellingSuggestionResultFormatterPlugin(),
156
            new CategoryTreeFilterPageSearchResultFormatterPlugin(),
157
        ];
158
    }
159
160
    /**
161
     * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>|array<\Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface>
162
     */
163
    protected function createSuggestionQueryExpanderPlugins(): array
164
    {
165
        return [
166
            new StoreQueryExpanderPlugin(),
167
            new LocalizedQueryExpanderPlugin(),
168
            new CompletionQueryExpanderPlugin(),
169
            new SuggestionByTypeQueryExpanderPlugin(),
170
            new IsActiveQueryExpanderPlugin(),
171
            new IsActiveInDateRangeQueryExpanderPlugin(),
172
            new CustomerCatalogProductListQueryExpanderPlugin(),
173
            new MerchantReferenceQueryExpanderPlugin(),
174
        ];
175
    }
176
177
    /**
178
     * @phpstan-return array<\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface>
179
     *
180
     * @return array<\Spryker\Client\Search\Dependency\Plugin\ResultFormatterPluginInterface|\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface>
181
     */
182
    protected function createSuggestionResultFormatterPlugins(): array
183
    {
184
        $suggestionByTypeResultFormatterPlugin = new SuggestionByTypeResultFormatterPlugin();
185
186
        return [
187
            new CompletionResultFormatterPlugin(),
188
            new CurrencyAwareSuggestionByTypeResultFormatter(
189
                $suggestionByTypeResultFormatterPlugin,
0 ignored issues
show
Bug introduced by
$suggestionByTypeResultFormatterPlugin of type Spryker\Client\SearchEla...peResultFormatterPlugin is incompatible with the type Spryker\Client\Search\De...ormatterPluginInterface expected by parameter $rawCatalogSearchResultFormatterPlugin of Spryker\Client\CatalogPr...ormatter::__construct(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

189
                /** @scrutinizer ignore-type */ $suggestionByTypeResultFormatterPlugin,
Loading history...
190
            ),
191
        ];
192
    }
193
194
    /**
195
     * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>|array<\Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface>
196
     */
197
    protected function createCatalogSearchCountQueryExpanderPlugins(): array
198
    {
199
        return [
200
            new StoreQueryExpanderPlugin(),
201
            new LocalizedQueryExpanderPlugin(),
202
            new ProductPriceQueryExpanderPlugin(),
203
            new IsActiveQueryExpanderPlugin(),
204
            new IsActiveInDateRangeQueryExpanderPlugin(),
205
            new CustomerCatalogProductListQueryExpanderPlugin(),
206
        ];
207
    }
208
209
    /**
210
     * @phpstan-return array<\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface>
211
     *
212
     * @return array<\Spryker\Client\Search\Dependency\Plugin\ResultFormatterPluginInterface|\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface>
213
     */
214
    protected function getProductConcreteCatalogSearchResultFormatterPlugins(): array
215
    {
216
        return [
217
            new ProductConcreteCatalogSearchResultFormatterPlugin(),
218
        ];
219
    }
220
221
    /**
222
     * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>|array<\Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface>
223
     */
224
    protected function getProductConcreteCatalogSearchQueryExpanderPlugins(): array
225
    {
226
        return [
227
            new LocalizedQueryExpanderPlugin(),
228
            new PaginatedProductConcreteCatalogSearchQueryExpanderPlugin(),
229
            new CustomerCatalogProductListQueryExpanderPlugin(),
230
            new ProductListSearchProductListQueryExpanderPlugin(),
231
            new MerchantReferenceQueryExpanderPlugin(),
232
            new MerchantProductReferenceQueryExpanderPlugin(),
233
        ];
234
    }
235
236
    /**
237
     * @return array<string, array<\Spryker\Client\Catalog\Dependency\Plugin\FacetConfigTransferBuilderPluginInterface>>
238
     */
239
    protected function getFacetConfigTransferBuilderPluginVariants(): array
240
    {
241
        return [
242
            SearchHttpConfig::TYPE_SEARCH_HTTP => [
243
                new CategoryFacetConfigTransferBuilderPlugin(),
244
                new PriceFacetConfigTransferBuilderPlugin(),
245
                new RatingFacetConfigTransferBuilderPlugin(),
246
                new ProductLabelSearchHttpFacetConfigTransferBuilderPlugin(),
247
                new ProductClassFacetConfigTransferBuilderPlugin(),
248
            ],
249
        ];
250
    }
251
252
    /**
253
     * @phpstan-return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryInterface>
254
     *
255
     * @return array<\Spryker\Client\Search\Dependency\Plugin\QueryInterface>
256
     */
257
    protected function createCatalogSearchQueryPluginVariants(): array
258
    {
259
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...earchHttpQueryPlugin()) returns the type array<integer,Spryker\Cl...\SearchHttpQueryPlugin> which is incompatible with the documented return type Spryker\Client\Search\De...Plugin\QueryInterface[].
Loading history...
260
            new SearchHttpQueryPlugin(),
261
        ];
262
    }
263
264
    /**
265
     * @phpstan-return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryInterface>
266
     *
267
     * @return array<\Spryker\Client\Search\Dependency\Plugin\QueryInterface>
268
     */
269
    protected function createSuggestionQueryPluginVariants(): array
270
    {
271
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...earchHttpQueryPlugin()) returns the type array<integer,Spryker\Cl...nSearchHttpQueryPlugin> which is incompatible with the documented return type Spryker\Client\Search\De...Plugin\QueryInterface[].
Loading history...
272
            new SuggestionSearchHttpQueryPlugin(),
273
        ];
274
    }
275
276
    /**
277
     * @return array<string, array<\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface>>
278
     */
279
    protected function createProductConcreteCatalogSearchResultFormatterPluginVariants(): array
280
    {
281
        return [
282
            SearchHttpConfig::TYPE_PRODUCT_CONCRETE_SEARCH_HTTP => [
283
                new ProductConcreteCatalogSearchHttpResultFormatterPlugin(),
284
            ],
285
        ];
286
    }
287
288
    /**
289
     * @return array<string, array<\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface>>
290
     */
291
    protected function createSuggestionResultFormatterPluginVariants(): array
292
    {
293
        return [
294
            SearchHttpConfig::TYPE_SUGGESTION_SEARCH_HTTP => [
295
                new CompletionSearchHttpResultFormatterPlugin(),
296
                new CurrencyAwareCatalogSearchHttpResultFormatterPlugin(
297
                    new ProductSuggestionSearchHttpResultFormatterPlugin(),
298
                ),
299
                new CategorySuggestionsSearchHttpResultFormatterPlugin(),
300
                new CmsPageSuggestionsSearchHttpResultFormatterPlugin(),
301
            ],
302
        ];
303
    }
304
305
    /**
306
     * @return array<string, array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>>
307
     */
308
    protected function createCatalogSearchCountQueryExpanderPluginVariants(): array
309
    {
310
        return [
311
            SearchHttpConfig::TYPE_SEARCH_HTTP => [
312
                new ProductPriceSearchHttpQueryExpanderPlugin(),
313
            ],
314
        ];
315
    }
316
317
    /**
318
     * @phpstan-return array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryInterface>
319
     *
320
     * @return array<\Spryker\Client\Search\Dependency\Plugin\QueryInterface>
321
     */
322
    protected function createProductConcreteCatalogSearchQueryPluginVariants(): array
323
    {
324
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...earchHttpQueryPlugin()) returns the type array<integer,Spryker\Cl...eSearchHttpQueryPlugin> which is incompatible with the documented return type Spryker\Client\Search\De...Plugin\QueryInterface[].
Loading history...
325
            new ProductConcreteSearchHttpQueryPlugin(),
326
        ];
327
    }
328
329
    /**
330
     * @return array<string, array<\Spryker\Client\SearchExtension\Dependency\Plugin\QueryExpanderPluginInterface>>
331
     */
332
    protected function createCatalogSearchQueryExpanderPluginVariants(): array
333
    {
334
        return [
335
            SearchHttpConfig::TYPE_SEARCH_HTTP => [
336
                new BasicSearchHttpQueryExpanderPlugin(),
337
                new ProductPriceSearchHttpQueryExpanderPlugin(),
338
                new FacetSearchHttpQueryExpanderPlugin(),
339
            ],
340
        ];
341
    }
342
343
    /**
344
     * @return array<string, array<\Spryker\Client\SearchExtension\Dependency\Plugin\ResultFormatterPluginInterface>>
345
     */
346
    protected function createCatalogSearchResultFormatterPluginVariants(): array
347
    {
348
        return [
349
            SearchHttpConfig::TYPE_SEARCH_HTTP => [
350
                new PaginationSearchHttpResultFormatterPlugin(),
351
                new SortSearchHttpResultFormatterPlugin(),
352
                new CurrencyAwareCatalogSearchHttpResultFormatterPlugin(
353
                    new ProductSearchHttpResultFormatterPlugin(),
354
                ),
355
                new SpellingSuggestionSearchHttpResultFormatterPlugin(),
356
                new FacetSearchHttpResultFormatterPlugin(),
357
                new CategoryTreeFilterSearchHttpResultFormatterPlugin(),
358
            ],
359
        ];
360
    }
361
362
    /**
363
     * @api
364
     *
365
     * @return list<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchResultCountPluginInterface>
366
     */
367
    protected function getSearchResultCountPlugins(): array
368
    {
369
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...rchResultCountPlugin()) returns the type array<integer,Spryker\Cl...earchResultCountPlugin> which is incompatible with the documented return type Pyz\Client\Catalog\list.
Loading history...
370
            new SearchHttpSearchResultCountPlugin(),
371
        ];
372
    }
373
}
374