|
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
|
|
|
namespace Pyz\Zed\Product; |
|
9
|
|
|
|
|
10
|
|
|
use Spryker\Shared\ProductBundleStorage\ProductBundleStorageConfig; |
|
11
|
|
|
use Spryker\Zed\PriceProduct\Dependency\PriceProductEvents; |
|
12
|
|
|
use Spryker\Zed\Product\Dependency\ProductEvents; |
|
13
|
|
|
use Spryker\Zed\Product\ProductConfig as SprykerProductConfig; |
|
14
|
|
|
use Spryker\Zed\ProductCategory\Dependency\ProductCategoryEvents; |
|
15
|
|
|
use Spryker\Zed\ProductImage\Dependency\ProductImageEvents; |
|
16
|
|
|
use Spryker\Zed\ProductReview\Dependency\ProductReviewEvents; |
|
17
|
|
|
|
|
18
|
|
|
class ProductConfig extends SprykerProductConfig |
|
19
|
|
|
{ |
|
20
|
|
|
/** |
|
21
|
|
|
* @api |
|
22
|
|
|
* |
|
23
|
|
|
* @return array<string> |
|
24
|
|
|
*/ |
|
25
|
|
|
public function getProductAbstractUpdateMessageBrokerPublisherSubscribedEvents(): array |
|
26
|
|
|
{ |
|
27
|
|
|
return [ |
|
28
|
|
|
ProductEvents::PRODUCT_ABSTRACT_PUBLISH, |
|
29
|
|
|
ProductCategoryEvents::PRODUCT_CATEGORY_PUBLISH, |
|
30
|
|
|
ProductImageEvents::PRODUCT_IMAGE_PRODUCT_ABSTRACT_PUBLISH, |
|
31
|
|
|
PriceProductEvents::PRICE_ABSTRACT_PUBLISH, |
|
32
|
|
|
ProductReviewEvents::PRODUCT_ABSTRACT_REVIEW_PUBLISH, |
|
33
|
|
|
]; |
|
34
|
|
|
} |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @api |
|
38
|
|
|
* |
|
39
|
|
|
* @return array<string> |
|
40
|
|
|
*/ |
|
41
|
|
|
public function getProductUpdateMessageBrokerPublisherSubscribedEvents(): array |
|
42
|
|
|
{ |
|
43
|
|
|
return [ |
|
44
|
|
|
ProductEvents::ENTITY_SPY_PRODUCT_UPDATE, |
|
45
|
|
|
ProductEvents::PRODUCT_CONCRETE_UPDATE, |
|
46
|
|
|
ProductEvents::PRODUCT_CONCRETE_PUBLISH, |
|
47
|
|
|
ProductBundleStorageConfig::PRODUCT_BUNDLE_PUBLISH, |
|
48
|
|
|
ProductImageEvents::PRODUCT_IMAGE_PRODUCT_CONCRETE_PUBLISH, |
|
49
|
|
|
]; |
|
50
|
|
|
} |
|
51
|
|
|
} |
|
52
|
|
|
|