getSearchConfigExpanderPlugins()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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\SearchHttp;
11
12
use Spryker\Client\Catalog\Plugin\ConfigTransferBuilder\CategoryFacetConfigTransferBuilderPlugin;
13
use Spryker\Client\Catalog\Plugin\SearchHttp\CatalogSearchHttpConfigBuilderPlugin;
14
use Spryker\Client\CatalogPriceProductConnector\Plugin\ConfigTransferBuilder\PriceFacetConfigTransferBuilderPlugin;
15
use Spryker\Client\ProductLabelStorage\Plugin\ProductLabelFacetConfigTransferBuilderPlugin;
16
use Spryker\Client\ProductReview\Plugin\RatingFacetConfigTransferBuilderPlugin;
17
use Spryker\Client\ProductSearchConfigStorage\Plugin\Config\ProductSearchConfigExpanderPlugin;
18
use Spryker\Client\SearchHttp\SearchHttpDependencyProvider as SprykerSearchHttpDependencyProvider;
19
20
class SearchHttpDependencyProvider extends SprykerSearchHttpDependencyProvider
21
{
22
    /**
23
     * @return array<\Spryker\Client\Catalog\Dependency\Plugin\FacetConfigTransferBuilderPluginInterface>
24
     */
25
    protected function getFacetConfigTransferBuilders(): array
26
    {
27
        return [
28
            new CategoryFacetConfigTransferBuilderPlugin(),
29
            new PriceFacetConfigTransferBuilderPlugin(),
30
            new RatingFacetConfigTransferBuilderPlugin(),
31
            new ProductLabelFacetConfigTransferBuilderPlugin(),
32
        ];
33
    }
34
35
    /**
36
     * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigBuilderPluginInterface>
37
     */
38
    protected function getSearchConfigBuilderPlugins(): array
39
    {
40
        return [
41
            new CatalogSearchHttpConfigBuilderPlugin(),
42
        ];
43
    }
44
45
    /**
46
     * @return array<\Spryker\Client\SearchExtension\Dependency\Plugin\SearchConfigExpanderPluginInterface>
47
     */
48
    protected function getSearchConfigExpanderPlugins(): array
49
    {
50
        return [
51
            new ProductSearchConfigExpanderPlugin(),
52
        ];
53
    }
54
}
55