|
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\Glue\ProductsRestApi; |
|
11
|
|
|
|
|
12
|
|
|
use Spryker\Glue\ProductAttributesRestApi\Plugin\ProductsRestApi\MultiSelectAttributeAbstractProductsResourceExpanderPlugin; |
|
13
|
|
|
use Spryker\Glue\ProductAttributesRestApi\Plugin\ProductsRestApi\MultiSelectAttributeConcreteProductsResourceExpanderPlugin; |
|
14
|
|
|
use Spryker\Glue\ProductConfigurationsRestApi\Plugin\ProductsRestApi\ProductConfigurationConcreteProductsResourceExpanderPlugin; |
|
15
|
|
|
use Spryker\Glue\ProductDiscontinuedRestApi\Plugin\ProductDiscontinuedConcreteProductsResourceExpanderPlugin; |
|
16
|
|
|
use Spryker\Glue\ProductReviewsRestApi\Plugin\ProductsRestApi\ProductReviewsAbstractProductsResourceExpanderPlugin; |
|
17
|
|
|
use Spryker\Glue\ProductReviewsRestApi\Plugin\ProductsRestApi\ProductReviewsConcreteProductsResourceExpanderPlugin; |
|
18
|
|
|
use Spryker\Glue\ProductsRestApi\ProductsRestApiDependencyProvider as SprykerProductsRestApiDependencyProvider; |
|
19
|
|
|
|
|
20
|
|
|
class ProductsRestApiDependencyProvider extends SprykerProductsRestApiDependencyProvider |
|
21
|
|
|
{ |
|
22
|
|
|
/** |
|
23
|
|
|
* @return array<\Spryker\Glue\ProductsRestApiExtension\Dependency\Plugin\ConcreteProductsResourceExpanderPluginInterface> |
|
24
|
|
|
*/ |
|
25
|
|
|
protected function getConcreteProductsResourceExpanderPlugins(): array |
|
26
|
|
|
{ |
|
27
|
|
|
return [ |
|
28
|
|
|
new ProductDiscontinuedConcreteProductsResourceExpanderPlugin(), |
|
29
|
|
|
new ProductReviewsConcreteProductsResourceExpanderPlugin(), |
|
30
|
|
|
new ProductConfigurationConcreteProductsResourceExpanderPlugin(), |
|
31
|
|
|
new MultiSelectAttributeConcreteProductsResourceExpanderPlugin(), // remove if the project is accept product attribute values as array of strings |
|
32
|
|
|
]; |
|
33
|
|
|
} |
|
34
|
|
|
|
|
35
|
|
|
/** |
|
36
|
|
|
* @return array<\Spryker\Glue\ProductsRestApiExtension\Dependency\Plugin\AbstractProductsResourceExpanderPluginInterface> |
|
37
|
|
|
*/ |
|
38
|
|
|
protected function getAbstractProductsResourceExpanderPlugins(): array |
|
39
|
|
|
{ |
|
40
|
|
|
return [ |
|
41
|
|
|
new ProductReviewsAbstractProductsResourceExpanderPlugin(), |
|
42
|
|
|
new MultiSelectAttributeAbstractProductsResourceExpanderPlugin(), // remove if the project is accept product attribute values as array of strings |
|
43
|
|
|
]; |
|
44
|
|
|
} |
|
45
|
|
|
} |
|
46
|
|
|
|