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\Zed\Queue; |
11
|
|
|
|
12
|
|
|
use Spryker\Shared\AssetStorage\AssetStorageConfig; |
13
|
|
|
use Spryker\Shared\AvailabilityStorage\AvailabilityStorageConfig; |
14
|
|
|
use Spryker\Shared\AvailabilityStorage\AvailabilityStorageConstants; |
15
|
|
|
use Spryker\Shared\CategoryPageSearch\CategoryPageSearchConstants; |
16
|
|
|
use Spryker\Shared\CategoryStorage\CategoryStorageConstants; |
17
|
|
|
use Spryker\Shared\CmsPageSearch\CmsPageSearchConstants; |
18
|
|
|
use Spryker\Shared\CmsStorage\CmsStorageConstants; |
19
|
|
|
use Spryker\Shared\Config\Config; |
20
|
|
|
use Spryker\Shared\ConfigurableBundlePageSearch\ConfigurableBundlePageSearchConfig; |
21
|
|
|
use Spryker\Shared\ConfigurableBundleStorage\ConfigurableBundleStorageConfig; |
22
|
|
|
use Spryker\Shared\ContentStorage\ContentStorageConfig; |
23
|
|
|
use Spryker\Shared\CustomerAccessStorage\CustomerAccessStorageConstants; |
24
|
|
|
use Spryker\Shared\CustomerStorage\CustomerStorageConfig; |
25
|
|
|
use Spryker\Shared\Event\EventConstants; |
26
|
|
|
use Spryker\Shared\FileManagerStorage\FileManagerStorageConstants; |
27
|
|
|
use Spryker\Shared\GlossaryStorage\GlossaryStorageConfig; |
28
|
|
|
use Spryker\Shared\Log\LogConstants; |
29
|
|
|
use Spryker\Shared\MerchantOpeningHoursStorage\MerchantOpeningHoursStorageConfig; |
30
|
|
|
use Spryker\Shared\MerchantSearch\MerchantSearchConfig; |
31
|
|
|
use Spryker\Shared\MerchantStorage\MerchantStorageConfig; |
32
|
|
|
use Spryker\Shared\PriceProductOfferStorage\PriceProductOfferStorageConfig; |
33
|
|
|
use Spryker\Shared\PriceProductStorage\PriceProductStorageConfig; |
34
|
|
|
use Spryker\Shared\PriceProductStorage\PriceProductStorageConstants; |
35
|
|
|
use Spryker\Shared\ProductConfigurationStorage\ProductConfigurationStorageConfig; |
36
|
|
|
use Spryker\Shared\ProductImageStorage\ProductImageStorageConfig; |
37
|
|
|
use Spryker\Shared\ProductOfferAvailabilityStorage\ProductOfferAvailabilityStorageConfig; |
38
|
|
|
use Spryker\Shared\ProductOfferServicePointStorage\ProductOfferServicePointStorageConfig; |
39
|
|
|
use Spryker\Shared\ProductOfferShipmentTypeStorage\ProductOfferShipmentTypeStorageConfig; |
40
|
|
|
use Spryker\Shared\ProductOfferStorage\ProductOfferStorageConfig; |
41
|
|
|
use Spryker\Shared\ProductPageSearch\ProductPageSearchConfig; |
42
|
|
|
use Spryker\Shared\ProductPageSearch\ProductPageSearchConstants; |
43
|
|
|
use Spryker\Shared\ProductStorage\ProductStorageConfig; |
44
|
|
|
use Spryker\Shared\ProductStorage\ProductStorageConstants; |
45
|
|
|
use Spryker\Shared\PublishAndSynchronizeHealthCheck\PublishAndSynchronizeHealthCheckConfig; |
46
|
|
|
use Spryker\Shared\PublishAndSynchronizeHealthCheckSearch\PublishAndSynchronizeHealthCheckSearchConfig; |
47
|
|
|
use Spryker\Shared\PublishAndSynchronizeHealthCheckStorage\PublishAndSynchronizeHealthCheckStorageConfig; |
48
|
|
|
use Spryker\Shared\Publisher\PublisherConfig; |
49
|
|
|
use Spryker\Shared\SalesReturnSearch\SalesReturnSearchConfig; |
50
|
|
|
use Spryker\Shared\SearchHttp\SearchHttpConfig; |
51
|
|
|
use Spryker\Shared\ServicePointSearch\ServicePointSearchConfig; |
52
|
|
|
use Spryker\Shared\ServicePointStorage\ServicePointStorageConfig; |
53
|
|
|
use Spryker\Shared\ShipmentTypeStorage\ShipmentTypeStorageConfig; |
54
|
|
|
use Spryker\Shared\StoreStorage\StoreStorageConfig; |
55
|
|
|
use Spryker\Shared\TaxProductStorage\TaxProductStorageConfig; |
56
|
|
|
use Spryker\Shared\TaxStorage\TaxStorageConfig; |
57
|
|
|
use Spryker\Shared\UrlStorage\UrlStorageConfig; |
58
|
|
|
use Spryker\Shared\UrlStorage\UrlStorageConstants; |
59
|
|
|
use Spryker\Zed\Event\Communication\Plugin\Queue\EventQueueMessageProcessorPlugin; |
60
|
|
|
use Spryker\Zed\Event\Communication\Plugin\Queue\EventRetryQueueMessageProcessorPlugin; |
61
|
|
|
use Spryker\Zed\Kernel\Container; |
62
|
|
|
use Spryker\Zed\Queue\QueueDependencyProvider as SprykerDependencyProvider; |
63
|
|
|
use Spryker\Zed\RabbitMq\Communication\Plugin\Queue\RabbitMqQueueMessageCheckerPlugin; |
64
|
|
|
use Spryker\Zed\Synchronization\Communication\Plugin\Queue\SynchronizationSearchQueueMessageProcessorPlugin; |
65
|
|
|
use Spryker\Zed\Synchronization\Communication\Plugin\Queue\SynchronizationStorageQueueMessageProcessorPlugin; |
66
|
|
|
use SprykerEco\Zed\Loggly\Communication\Plugin\LogglyLoggerQueueMessageProcessorPlugin; |
67
|
|
|
|
68
|
|
|
class QueueDependencyProvider extends SprykerDependencyProvider |
69
|
|
|
{ |
70
|
|
|
/** |
71
|
|
|
* @param \Spryker\Zed\Kernel\Container $container |
72
|
|
|
* |
73
|
|
|
* @return array<\Spryker\Zed\Queue\Dependency\Plugin\QueueMessageProcessorPluginInterface> |
74
|
|
|
*/ |
75
|
|
|
protected function getProcessorMessagePlugins(Container $container): array // phpcs:ignore SlevomatCodingStandard.Functions.UnusedParameter |
76
|
|
|
{ |
77
|
|
|
return [ |
78
|
|
|
EventConstants::EVENT_QUEUE => new EventQueueMessageProcessorPlugin(), |
79
|
|
|
EventConstants::EVENT_QUEUE_RETRY => new EventRetryQueueMessageProcessorPlugin(), |
80
|
|
|
PublisherConfig::PUBLISH_QUEUE => new EventQueueMessageProcessorPlugin(), |
81
|
|
|
PublisherConfig::PUBLISH_RETRY_QUEUE => new EventRetryQueueMessageProcessorPlugin(), |
82
|
|
|
PublishAndSynchronizeHealthCheckConfig::PUBLISH_PUBLISH_AND_SYNCHRONIZE_HEALTH_CHECK => new EventQueueMessageProcessorPlugin(), |
83
|
|
|
PublishAndSynchronizeHealthCheckStorageConfig::SYNC_STORAGE_PUBLISH_AND_SYNCHRONIZE_HEALTH_CHECK => new SynchronizationStorageQueueMessageProcessorPlugin(), |
84
|
|
|
PublishAndSynchronizeHealthCheckSearchConfig::SYNC_SEARCH_PUBLISH_AND_SYNCHRONIZE_HEALTH_CHECK => new SynchronizationSearchQueueMessageProcessorPlugin(), |
85
|
|
|
Config::get(LogConstants::LOG_QUEUE_NAME) => new LogglyLoggerQueueMessageProcessorPlugin(), |
86
|
|
|
GlossaryStorageConfig::SYNC_STORAGE_TRANSLATION => new SynchronizationStorageQueueMessageProcessorPlugin(), |
87
|
|
|
CmsStorageConstants::CMS_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
88
|
|
|
AvailabilityStorageConfig::PUBLISH_AVAILABILITY => new EventQueueMessageProcessorPlugin(), |
89
|
|
|
AvailabilityStorageConstants::AVAILABILITY_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
90
|
|
|
CustomerAccessStorageConstants::CUSTOMER_ACCESS_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
91
|
|
|
CustomerStorageConfig::PUBLISH_CUSTOMER_INVALIDATED => new EventQueueMessageProcessorPlugin(), |
92
|
|
|
CustomerStorageConfig::CUSTOMER_INVALIDATED_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
93
|
|
|
UrlStorageConfig::PUBLISH_URL => new EventQueueMessageProcessorPlugin(), |
94
|
|
|
UrlStorageConstants::URL_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
95
|
|
|
ProductStorageConfig::PUBLISH_PRODUCT_ABSTRACT => new EventQueueMessageProcessorPlugin(), |
96
|
|
|
ProductStorageConfig::PUBLISH_PRODUCT_CONCRETE => new EventQueueMessageProcessorPlugin(), |
97
|
|
|
ProductStorageConstants::PRODUCT_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
98
|
|
|
ConfigurableBundleStorageConfig::CONFIGURABLE_BUNDLE_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
99
|
|
|
ConfigurableBundlePageSearchConfig::CONFIGURABLE_BUNDLE_SEARCH_QUEUE => new SynchronizationSearchQueueMessageProcessorPlugin(), |
100
|
|
|
PriceProductStorageConfig::PUBLISH_PRICE_PRODUCT_ABSTRACT => new EventQueueMessageProcessorPlugin(), |
101
|
|
|
PriceProductStorageConfig::PUBLISH_PRICE_PRODUCT_CONCRETE => new EventQueueMessageProcessorPlugin(), |
102
|
|
|
ProductImageStorageConfig::PUBLISH_PRODUCT_ABSTRACT_IMAGE => new EventQueueMessageProcessorPlugin(), |
103
|
|
|
ProductImageStorageConfig::PUBLISH_PRODUCT_CONCRETE_IMAGE => new EventQueueMessageProcessorPlugin(), |
104
|
|
|
PriceProductStorageConstants::PRICE_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
105
|
|
|
CategoryStorageConstants::CATEGORY_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
106
|
|
|
CmsPageSearchConstants::CMS_SYNC_SEARCH_QUEUE => new SynchronizationSearchQueueMessageProcessorPlugin(), |
107
|
|
|
CategoryPageSearchConstants::CATEGORY_SYNC_SEARCH_QUEUE => new SynchronizationSearchQueueMessageProcessorPlugin(), |
108
|
|
|
ProductPageSearchConfig::PUBLISH_PRODUCT_ABSTRACT_PAGE => new EventQueueMessageProcessorPlugin(), |
109
|
|
|
ProductPageSearchConfig::PUBLISH_PRODUCT_CONCRETE_PAGE => new EventQueueMessageProcessorPlugin(), |
110
|
|
|
ProductPageSearchConstants::PRODUCT_SYNC_SEARCH_QUEUE => new SynchronizationSearchQueueMessageProcessorPlugin(), |
111
|
|
|
FileManagerStorageConstants::FILE_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
112
|
|
|
ContentStorageConfig::CONTENT_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
113
|
|
|
TaxProductStorageConfig::PRODUCT_ABSTRACT_TAX_SET_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
114
|
|
|
TaxStorageConfig::TAX_SET_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
115
|
|
|
SalesReturnSearchConfig::SYNC_SEARCH_RETURN => new SynchronizationSearchQueueMessageProcessorPlugin(), |
116
|
|
|
MerchantStorageConfig::MERCHANT_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
117
|
|
|
MerchantStorageConfig::PUBLISH_MERCHANT => new EventQueueMessageProcessorPlugin(), |
118
|
|
|
MerchantSearchConfig::SYNC_SEARCH_MERCHANT => new SynchronizationSearchQueueMessageProcessorPlugin(), |
119
|
|
|
StoreStorageConfig::STORE_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
120
|
|
|
PriceProductOfferStorageConfig::PRICE_PRODUCT_OFFER_OFFER_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
121
|
|
|
ProductOfferAvailabilityStorageConfig::PRODUCT_OFFER_AVAILABILITY_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
122
|
|
|
MerchantOpeningHoursStorageConfig::MERCHANT_OPENING_HOURS_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
123
|
|
|
ProductOfferStorageConfig::PRODUCT_OFFER_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
124
|
|
|
AssetStorageConfig::ASSET_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
125
|
|
|
ProductConfigurationStorageConfig::PRODUCT_CONFIGURATION_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
126
|
|
|
SearchHttpConfig::SEARCH_HTTP_CONFIG_SYNC_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
127
|
|
|
ServicePointSearchConfig::QUEUE_NAME_SYNC_SEARCH_SERVICE_POINT => new SynchronizationSearchQueueMessageProcessorPlugin(), |
128
|
|
|
ServicePointStorageConfig::QUEUE_NAME_SYNC_STORAGE_SERVICE_POINT => new SynchronizationStorageQueueMessageProcessorPlugin(), |
129
|
|
|
ShipmentTypeStorageConfig::QUEUE_NAME_SYNC_STORAGE_SHIPMENT_TYPE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
130
|
|
|
ProductOfferServicePointStorageConfig::QUEUE_NAME_SYNC_STORAGE_PRODUCT_OFFER_SERVICE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
131
|
|
|
ProductOfferShipmentTypeStorageConfig::PRODUCT_OFFER_SHIPMENT_TYPE_SYNC_STORAGE_QUEUE => new SynchronizationStorageQueueMessageProcessorPlugin(), |
132
|
|
|
UrlStorageConfig::PUBLISH_URL_RETRY => new EventRetryQueueMessageProcessorPlugin(), |
133
|
|
|
]; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @return array<\Spryker\Zed\QueueExtension\Dependency\Plugin\QueueMessageCheckerPluginInterface> |
138
|
|
|
*/ |
139
|
|
|
protected function getQueueMessageCheckerPlugins(): array |
140
|
|
|
{ |
141
|
|
|
return array_merge( |
142
|
|
|
parent::getQueueMessageCheckerPlugins(), |
143
|
|
|
[ |
144
|
|
|
new RabbitMqQueueMessageCheckerPlugin(), |
145
|
|
|
], |
146
|
|
|
); |
147
|
|
|
} |
148
|
|
|
} |
149
|
|
|
|