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\Publisher; |
11
|
|
|
|
12
|
|
|
use Spryker\Shared\GlossaryStorage\GlossaryStorageConfig; |
13
|
|
|
use Spryker\Shared\PublishAndSynchronizeHealthCheck\PublishAndSynchronizeHealthCheckConfig; |
14
|
|
|
use Spryker\Zed\Asset\Communication\Plugin\Publisher\Store\RefreshAssetStoreRelationPublisherPlugin; |
15
|
|
|
use Spryker\Zed\AssetStorage\Communication\Plugin\Publisher\Asset\AssetDeletePublisherPlugin; |
16
|
|
|
use Spryker\Zed\AssetStorage\Communication\Plugin\Publisher\Asset\AssetWritePublisherPlugin; |
17
|
|
|
use Spryker\Zed\AssetStorage\Communication\Plugin\Publisher\AssetPublisherTriggerPlugin; |
18
|
|
|
use Spryker\Zed\CategoryImageStorage\Communication\Plugin\Publisher\CategoryImagePublisherTriggerPlugin; |
19
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\Category\CategoryDeletePublisherPlugin as CategoryPageSearchCategoryDeletePublisherPlugin; |
20
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\Category\CategoryWritePublisherPlugin as CategoryPageSearchCategoryWritePublisherPlugin; |
21
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeDeletePublisherPlugin as CategoryPageSearchCategoryAttributeDeletePublisherPlugin; |
22
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeWritePublisherPlugin as CategoryPageSearchCategoryAttributeWritePublisherPlugin; |
23
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\CategoryNode\CategoryNodeDeletePublisherPlugin as CategoryPageSearchCategoryNodeDeletePublisherPlugin; |
24
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\CategoryNode\CategoryNodeWritePublisherPlugin as CategoryPageSearchCategoryNodeWritePublisherPlugin; |
25
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\CategoryPagePublisherTriggerPlugin; |
26
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\CategoryStore\CategoryStoreWriteForPublishingPublisherPlugin as CategoryStoreSearchWriteForPublishingPublisherPlugin; |
27
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\CategoryStore\CategoryStoreWritePublisherPlugin as CategoryStoreSearchWritePublisherPlugin; |
28
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateDeletePublisherPlugin as CategoryPageSearchCategoryTemplateDeletePublisherPlugin; |
29
|
|
|
use Spryker\Zed\CategoryPageSearch\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateWritePublisherPlugin as CategoryPageSearchCategoryTemplateWritePublisherPlugin; |
30
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\Category\CategoryDeletePublisherPlugin; |
31
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\Category\CategoryWritePublisherPlugin as CategoryStoreCategoryWritePublisherPlugin; |
32
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeDeletePublisherPlugin; |
33
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeWritePublisherPlugin; |
34
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeDeletePublisherPlugin; |
35
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeWritePublisherPlugin; |
36
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNodePublisherTriggerPlugin; |
37
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryStore\CategoryStoreWriteForPublishingPublisherPlugin as CategoryStoreStorageWriteForPublishingPublisherPlugin; |
38
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryStore\CategoryStoreWritePublisherPlugin as CategoryStoreStorageWritePublisherPlugin; |
39
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateDeletePublisherPlugin; |
40
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateWritePublisherPlugin; |
41
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeDeletePublisherPlugin; |
42
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin; |
43
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTreePublisherTriggerPlugin; |
44
|
|
|
use Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin; |
45
|
|
|
use Spryker\Zed\CustomerAccessStorage\Communication\Plugin\Publisher\CustomerAccessPublisherTriggerPlugin; |
46
|
|
|
use Spryker\Zed\CustomerStorage\Communication\Plugin\Publisher\Customer\CustomerInvalidatedWritePublisherPlugin; |
47
|
|
|
use Spryker\Zed\FileManagerStorage\Communication\Plugin\Publisher\FileManagerPublisherTriggerPlugin; |
48
|
|
|
use Spryker\Zed\GlossaryStorage\Communication\Plugin\Publisher\GlossaryKey\GlossaryDeletePublisherPlugin as GlossaryKeyDeletePublisherPlugin; |
49
|
|
|
use Spryker\Zed\GlossaryStorage\Communication\Plugin\Publisher\GlossaryKey\GlossaryWritePublisherPlugin as GlossaryKeyWriterPublisherPlugin; |
50
|
|
|
use Spryker\Zed\GlossaryStorage\Communication\Plugin\Publisher\GlossaryPublisherTriggerPlugin; |
51
|
|
|
use Spryker\Zed\GlossaryStorage\Communication\Plugin\Publisher\GlossaryTranslation\GlossaryWritePublisherPlugin as GlossaryTranslationWritePublisherPlugin; |
52
|
|
|
use Spryker\Zed\MerchantSearch\Communication\Plugin\Publisher\Merchant\MerchantDeletePublisherPlugin; |
53
|
|
|
use Spryker\Zed\MerchantSearch\Communication\Plugin\Publisher\Merchant\MerchantWritePublisherPlugin; |
54
|
|
|
use Spryker\Zed\MerchantStorage\Communication\Plugin\Publisher\Merchant\MerchantStoragePublisherPlugin; |
55
|
|
|
use Spryker\Zed\MerchantStorage\Communication\Plugin\Publisher\MerchantPublisherTriggerPlugin; |
56
|
|
|
use Spryker\Zed\PriceProductMerchantRelationshipStorage\Communication\Plugin\Publisher\Merchant\MerchantWritePublisherPlugin as PriceProductMerchantWritePublisherPlugin; |
57
|
|
|
use Spryker\Zed\Product\Communication\Plugin\Publisher\ProductAbstractUpdatedMessageBrokerPublisherPlugin; |
58
|
|
|
use Spryker\Zed\Product\Communication\Plugin\Publisher\ProductConcreteCreatedMessageBrokerPublisherPlugin; |
59
|
|
|
use Spryker\Zed\Product\Communication\Plugin\Publisher\ProductConcreteDeletedMessageBrokerPublisherPlugin; |
60
|
|
|
use Spryker\Zed\Product\Communication\Plugin\Publisher\ProductConcreteExportedMessageBrokerPublisherPlugin; |
61
|
|
|
use Spryker\Zed\Product\Communication\Plugin\Publisher\ProductConcreteUpdatedMessageBrokerPublisherPlugin; |
62
|
|
|
use Spryker\Zed\ProductAlternativeStorage\Communication\Plugin\Publisher\ProductAlternativePublisherTriggerPlugin; |
63
|
|
|
use Spryker\Zed\ProductBundleStorage\Communication\Plugin\Publisher\ProductBundle\ProductBundlePublishWritePublisherPlugin; |
64
|
|
|
use Spryker\Zed\ProductBundleStorage\Communication\Plugin\Publisher\ProductBundle\ProductBundleWritePublisherPlugin; |
65
|
|
|
use Spryker\Zed\ProductBundleStorage\Communication\Plugin\Publisher\ProductBundlePublisherTriggerPlugin; |
66
|
|
|
use Spryker\Zed\ProductBundleStorage\Communication\Plugin\Publisher\ProductConcrete\ProductBundleWritePublisherPlugin as ProductConcreteProductBundleWritePublisherPlugin; |
67
|
|
|
use Spryker\Zed\ProductCategory\Communication\Plugin\Publisher\ProductCategoryProductUpdatedEventTriggerPlugin; |
68
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\Category\CategoryIsActiveAndCategoryKeyWritePublisherPlugin; |
69
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\Category\CategoryStoreDeletePublisherPlugin; |
70
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\Category\CategoryStoreWriteForPublishingPublisherPlugin; |
71
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\Category\CategoryStoreWritePublisherPlugin; |
72
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\Category\CategoryWritePublisherPlugin as ProductCategoryStorageCategoryWritePublisherPlugin; |
73
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeNameWritePublisherPlugin; |
74
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeWritePublisherPlugin as ProductCategoryAttributeWritePublisherPlugin; |
75
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeWritePublisherPlugin as ProductCategoryNodeWritePublisherPlugin; |
76
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\CategoryUrl\CategoryUrlAndResourceCategorynodeWritePublisherPlugin; |
77
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\CategoryUrl\CategoryUrlWritePublisherPlugin; |
78
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\ProductCategory\ProductCategoryWriteForPublishingPublisherPlugin; |
79
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\ProductCategory\ProductCategoryWritePublisherPlugin; |
80
|
|
|
use Spryker\Zed\ProductCategoryStorage\Communication\Plugin\Publisher\ProductCategoryPublisherTriggerPlugin; |
81
|
|
|
use Spryker\Zed\ProductConfigurationStorage\Communication\Plugin\Publisher\ProductConfiguration\ProductConfigurationDeletePublisherPlugin; |
82
|
|
|
use Spryker\Zed\ProductConfigurationStorage\Communication\Plugin\Publisher\ProductConfiguration\ProductConfigurationWritePublisherPlugin; |
83
|
|
|
use Spryker\Zed\ProductConfigurationStorage\Communication\Plugin\Publisher\ProductConfigurationPublisherTriggerPlugin; |
84
|
|
|
use Spryker\Zed\ProductDiscontinuedStorage\Communication\Plugin\Publisher\ProductDiscontinuedPublisherTriggerPlugin; |
85
|
|
|
use Spryker\Zed\ProductLabel\Communication\Plugin\Publisher\ProductLabelLocalizedAttributesWritePublisherPlugin; |
86
|
|
|
use Spryker\Zed\ProductLabel\Communication\Plugin\Publisher\ProductLabelProductUpdatedEventTriggerPlugin; |
87
|
|
|
use Spryker\Zed\ProductLabelSearch\Communication\Plugin\Publisher\ProductLabel\ProductLabelWritePublisherPlugin as ProductLabelSearchWritePublisherPlugin; |
88
|
|
|
use Spryker\Zed\ProductLabelSearch\Communication\Plugin\Publisher\ProductLabelProductAbstract\ProductLabelProductAbstractWritePublisherPlugin as ProductLabelProductAbstractSearchWritePublisherPlugin; |
89
|
|
|
use Spryker\Zed\ProductLabelSearch\Communication\Plugin\Publisher\ProductLabelSearchPublisherTriggerPlugin; |
90
|
|
|
use Spryker\Zed\ProductLabelSearch\Communication\Plugin\Publisher\ProductLabelStore\ProductLabelStoreWritePublisherPlugin as ProductLabelStoreSearchWritePublisherPlugin; |
91
|
|
|
use Spryker\Zed\ProductLabelStorage\Communication\Plugin\Publisher\ProductAbstractLabel\ProductAbstractLabelWritePublisherPlugin as ProductAbstractLabelStorageWritePublisherPlugin; |
92
|
|
|
use Spryker\Zed\ProductLabelStorage\Communication\Plugin\Publisher\ProductAbstractLabelPublisherTriggerPlugin; |
93
|
|
|
use Spryker\Zed\ProductLabelStorage\Communication\Plugin\Publisher\ProductLabelDictionary\ProductLabelDictionaryDeletePublisherPlugin as ProductLabelDictionaryStorageDeletePublisherPlugin; |
94
|
|
|
use Spryker\Zed\ProductLabelStorage\Communication\Plugin\Publisher\ProductLabelDictionary\ProductLabelDictionaryWritePublisherPlugin as ProductLabelDictionaryStorageWritePublisherPlugin; |
95
|
|
|
use Spryker\Zed\ProductLabelStorage\Communication\Plugin\Publisher\ProductLabelDictionaryPublisherTriggerPlugin; |
96
|
|
|
use Spryker\Zed\ProductLabelStorage\Communication\Plugin\Publisher\ProductLabelProductAbstract\ProductLabelProductAbstractWritePublisherPlugin as ProductLabelProductAbstractStorageWritePublisherPlugin; |
97
|
|
|
use Spryker\Zed\ProductListSearch\Communication\Plugin\Publisher\ProductListSearchPublisherTriggerPlugin; |
98
|
|
|
use Spryker\Zed\ProductListStorage\Communication\Plugin\Publisher\ProductListPublisherTriggerPlugin; |
99
|
|
|
use Spryker\Zed\ProductPageSearch\Communication\Plugin\Publisher\CategoryStore\CategoryStoreProductAbstractPageSearchWritePublisherPlugin; |
100
|
|
|
use Spryker\Zed\ProductPageSearch\Communication\Plugin\Publisher\Product\ProductConcretePageSearchWritePublisherPlugin; |
101
|
|
|
use Spryker\Zed\ProductPageSearch\Communication\Plugin\Publisher\ProductConcretePublisherTriggerPlugin; |
102
|
|
|
use Spryker\Zed\ProductRelationStorage\Communication\Plugin\Publisher\ProductRelation\ProductRelationWriteForPublishingPublisherPlugin; |
103
|
|
|
use Spryker\Zed\ProductRelationStorage\Communication\Plugin\Publisher\ProductRelation\ProductRelationWritePublisherPlugin; |
104
|
|
|
use Spryker\Zed\ProductRelationStorage\Communication\Plugin\Publisher\ProductRelationProductAbstract\ProductRelationProductAbstractWritePublisherPlugin; |
105
|
|
|
use Spryker\Zed\ProductRelationStorage\Communication\Plugin\Publisher\ProductRelationPublisherTriggerPlugin; |
106
|
|
|
use Spryker\Zed\ProductRelationStorage\Communication\Plugin\Publisher\ProductRelationStore\ProductRelationStoreWritePublisherPlugin; |
107
|
|
|
use Spryker\Zed\PublishAndSynchronizeHealthCheckSearch\Communication\Plugin\Publisher\PublishAndSynchronizeHealthCheckSearchPublisherTriggerPlugin; |
108
|
|
|
use Spryker\Zed\PublishAndSynchronizeHealthCheckSearch\Communication\Plugin\Publisher\PublishAndSynchronizeHealthCheckSearchWritePublisherPlugin; |
109
|
|
|
use Spryker\Zed\PublishAndSynchronizeHealthCheckStorage\Communication\Plugin\Publisher\PublishAndSynchronizeHealthCheckPublisherTriggerPlugin; |
110
|
|
|
use Spryker\Zed\PublishAndSynchronizeHealthCheckStorage\Communication\Plugin\Publisher\PublishAndSynchronizeHealthCheckStorageWritePublisherPlugin; |
111
|
|
|
use Spryker\Zed\Publisher\PublisherDependencyProvider as SprykerPublisherDependencyProvider; |
112
|
|
|
use Spryker\Zed\SalesReturnSearch\Communication\Plugin\Publisher\ReturnReason\ReturnReasonDeletePublisherPlugin; |
113
|
|
|
use Spryker\Zed\SalesReturnSearch\Communication\Plugin\Publisher\ReturnReason\ReturnReasonWritePublisherPlugin; |
114
|
|
|
use Spryker\Zed\SalesReturnSearch\Communication\Plugin\Publisher\ReturnReasonPublisherTriggerPlugin; |
115
|
|
|
use Spryker\Zed\StoreContextStorage\Communication\Plugin\Publisher\ContextStoreWritePublisherPlugin; |
116
|
|
|
use Spryker\Zed\StoreStorage\Communication\Plugin\Publisher\CountryStore\CountryStoreWritePublisherPlugin; |
117
|
|
|
use Spryker\Zed\StoreStorage\Communication\Plugin\Publisher\CurrencyStore\CurrencyStoreWritePublisherPlugin; |
118
|
|
|
use Spryker\Zed\StoreStorage\Communication\Plugin\Publisher\LocaleStore\LocaleStoreWritePublisherPlugin; |
119
|
|
|
use Spryker\Zed\StoreStorage\Communication\Plugin\Publisher\Store\StoreSynchronizationTriggeringPublisherPlugin; |
120
|
|
|
use Spryker\Zed\StoreStorage\Communication\Plugin\Publisher\Store\StoreWritePublisherPlugin; |
121
|
|
|
use Spryker\Zed\TaxApp\Communication\Plugin\Publisher\Store\RefreshTaxAppStoreRelationPublisherPlugin; |
122
|
|
|
use Spryker\Zed\TaxProductStorage\Communication\Plugin\Publisher\TaxProductPublisherTriggerPlugin; |
123
|
|
|
use Spryker\Zed\TaxStorage\Communication\Plugin\Publisher\TaxSetPublisherTriggerPlugin; |
124
|
|
|
|
125
|
|
|
class PublisherDependencyProvider extends SprykerPublisherDependencyProvider |
126
|
|
|
{ |
127
|
|
|
/** |
128
|
|
|
* @return array<int|string, \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface>|array<string, array<int|string, \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface>> |
129
|
|
|
*/ |
130
|
|
|
protected function getPublisherPlugins(): array |
131
|
|
|
{ |
132
|
|
|
return array_merge( |
133
|
|
|
$this->getPublishAndSynchronizeHealthCheckPlugins(), |
134
|
|
|
$this->getGlossaryStoragePlugins(), |
135
|
|
|
$this->getProductRelationStoragePlugins(), |
136
|
|
|
$this->getProductLabelStoragePlugins(), |
137
|
|
|
$this->getProductLabelSearchPlugins(), |
138
|
|
|
$this->getReturnReasonSearchPlugins(), |
139
|
|
|
$this->getProductBundleStoragePlugins(), |
140
|
|
|
$this->getCategoryStoragePlugins(), |
141
|
|
|
$this->getCategoryPageSearchPlugins(), |
142
|
|
|
$this->getProductPageSearchPlugins(), |
143
|
|
|
$this->getProductAbstractPageSearchPlugins(), |
144
|
|
|
$this->getProductCategoryStoragePlugins(), |
145
|
|
|
$this->getPriceProductMerchantRelationshipStoragePlugins(), |
146
|
|
|
$this->getStoreStoragePlugins(), |
147
|
|
|
$this->getAssetStoragePlugins(), |
148
|
|
|
$this->getCustomerStoragePlugins(), |
149
|
|
|
$this->getProductBundleStoragePlugins(), |
150
|
|
|
$this->getProductConfigurationStoragePlugins(), |
151
|
|
|
$this->getProductMessageBrokerPlugins(), |
152
|
|
|
$this->getMerchantStoragePlugins(), |
153
|
|
|
$this->getMerchantSearchPlugins(), |
154
|
|
|
$this->getAssetPlugins(), |
155
|
|
|
$this->getTaxAppPlugins(), |
156
|
|
|
); |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @return array<string, list<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface>> |
|
|
|
|
161
|
|
|
*/ |
162
|
|
|
protected function getPublishAndSynchronizeHealthCheckPlugins(): array |
163
|
|
|
{ |
164
|
|
|
return [ |
165
|
|
|
PublishAndSynchronizeHealthCheckConfig::PUBLISH_PUBLISH_AND_SYNCHRONIZE_HEALTH_CHECK => [ |
166
|
|
|
new PublishAndSynchronizeHealthCheckStorageWritePublisherPlugin(), |
167
|
|
|
new PublishAndSynchronizeHealthCheckSearchWritePublisherPlugin(), |
168
|
|
|
], |
169
|
|
|
]; |
170
|
|
|
} |
171
|
|
|
|
172
|
|
|
/** |
173
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherTriggerPluginInterface> |
174
|
|
|
*/ |
175
|
|
|
protected function getPublisherTriggerPlugins(): array |
176
|
|
|
{ |
177
|
|
|
return [ |
178
|
|
|
new GlossaryPublisherTriggerPlugin(), |
179
|
|
|
new ProductRelationPublisherTriggerPlugin(), |
180
|
|
|
new ProductAbstractLabelPublisherTriggerPlugin(), |
181
|
|
|
new ProductLabelDictionaryPublisherTriggerPlugin(), |
182
|
|
|
new ReturnReasonPublisherTriggerPlugin(), |
183
|
|
|
new ProductBundlePublisherTriggerPlugin(), |
184
|
|
|
new CategoryNodePublisherTriggerPlugin(), |
185
|
|
|
new CategoryTreePublisherTriggerPlugin(), |
186
|
|
|
new ProductCategoryPublisherTriggerPlugin(), |
187
|
|
|
new CategoryPagePublisherTriggerPlugin(), |
188
|
|
|
new ProductConfigurationPublisherTriggerPlugin(), |
189
|
|
|
new ProductConcretePublisherTriggerPlugin(), |
190
|
|
|
new ProductAlternativePublisherTriggerPlugin(), |
191
|
|
|
new ProductDiscontinuedPublisherTriggerPlugin(), |
192
|
|
|
new TaxSetPublisherTriggerPlugin(), |
193
|
|
|
new TaxProductPublisherTriggerPlugin(), |
194
|
|
|
new PublishAndSynchronizeHealthCheckSearchPublisherTriggerPlugin(), |
195
|
|
|
new PublishAndSynchronizeHealthCheckPublisherTriggerPlugin(), |
196
|
|
|
new ProductListPublisherTriggerPlugin(), |
197
|
|
|
new ProductListSearchPublisherTriggerPlugin(), |
198
|
|
|
new ProductLabelSearchPublisherTriggerPlugin(), |
199
|
|
|
new CategoryImagePublisherTriggerPlugin(), |
200
|
|
|
new FileManagerPublisherTriggerPlugin(), |
201
|
|
|
new AssetPublisherTriggerPlugin(), |
202
|
|
|
new CustomerAccessPublisherTriggerPlugin(), |
203
|
|
|
new MerchantPublisherTriggerPlugin(), |
204
|
|
|
]; |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
/** |
208
|
|
|
* @return array<int|string, \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface>|array<string, array<int|string, \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface>> |
209
|
|
|
*/ |
210
|
|
|
protected function getGlossaryStoragePlugins(): array |
211
|
|
|
{ |
212
|
|
|
return [ |
213
|
|
|
GlossaryStorageConfig::PUBLISH_TRANSLATION => [ |
214
|
|
|
new GlossaryKeyDeletePublisherPlugin(), |
215
|
|
|
new GlossaryKeyWriterPublisherPlugin(), |
216
|
|
|
new GlossaryTranslationWritePublisherPlugin(), |
217
|
|
|
], |
218
|
|
|
]; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
223
|
|
|
*/ |
224
|
|
|
protected function getProductRelationStoragePlugins(): array |
225
|
|
|
{ |
226
|
|
|
return [ |
227
|
|
|
new ProductRelationWritePublisherPlugin(), |
228
|
|
|
new ProductRelationWriteForPublishingPublisherPlugin(), |
229
|
|
|
new ProductRelationProductAbstractWritePublisherPlugin(), |
230
|
|
|
new ProductRelationStoreWritePublisherPlugin(), |
231
|
|
|
]; |
232
|
|
|
} |
233
|
|
|
|
234
|
|
|
/** |
235
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
236
|
|
|
*/ |
237
|
|
|
protected function getProductLabelStoragePlugins(): array |
238
|
|
|
{ |
239
|
|
|
return [ |
240
|
|
|
new ProductAbstractLabelStorageWritePublisherPlugin(), |
241
|
|
|
new ProductLabelProductAbstractStorageWritePublisherPlugin(), |
242
|
|
|
new ProductLabelDictionaryStorageWritePublisherPlugin(), |
243
|
|
|
new ProductLabelDictionaryStorageDeletePublisherPlugin(), |
244
|
|
|
new ProductLabelLocalizedAttributesWritePublisherPlugin(), |
245
|
|
|
]; |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
250
|
|
|
*/ |
251
|
|
|
protected function getProductLabelSearchPlugins(): array |
252
|
|
|
{ |
253
|
|
|
return [ |
254
|
|
|
new ProductLabelSearchWritePublisherPlugin(), |
255
|
|
|
new ProductLabelProductAbstractSearchWritePublisherPlugin(), |
256
|
|
|
new ProductLabelStoreSearchWritePublisherPlugin(), |
257
|
|
|
]; |
258
|
|
|
} |
259
|
|
|
|
260
|
|
|
/** |
261
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
262
|
|
|
*/ |
263
|
|
|
protected function getReturnReasonSearchPlugins(): array |
264
|
|
|
{ |
265
|
|
|
return [ |
266
|
|
|
new ReturnReasonWritePublisherPlugin(), |
267
|
|
|
new ReturnReasonDeletePublisherPlugin(), |
268
|
|
|
]; |
269
|
|
|
} |
270
|
|
|
|
271
|
|
|
/** |
272
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
273
|
|
|
*/ |
274
|
|
|
protected function getProductBundleStoragePlugins(): array |
275
|
|
|
{ |
276
|
|
|
return [ |
277
|
|
|
new ProductBundlePublishWritePublisherPlugin(), |
278
|
|
|
new ProductBundleWritePublisherPlugin(), |
279
|
|
|
new ProductConcreteProductBundleWritePublisherPlugin(), |
280
|
|
|
]; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
285
|
|
|
*/ |
286
|
|
|
protected function getCategoryStoragePlugins(): array |
287
|
|
|
{ |
288
|
|
|
return [ |
289
|
|
|
new CategoryStoreStorageWritePublisherPlugin(), |
290
|
|
|
new CategoryStoreStorageWriteForPublishingPublisherPlugin(), |
291
|
|
|
new CategoryTreeWriteForPublishingPublisherPlugin(), |
292
|
|
|
new CategoryDeletePublisherPlugin(), |
293
|
|
|
new CategoryStoreCategoryWritePublisherPlugin(), |
294
|
|
|
new CategoryAttributeDeletePublisherPlugin(), |
295
|
|
|
new CategoryAttributeWritePublisherPlugin(), |
296
|
|
|
new CategoryNodeDeletePublisherPlugin(), |
297
|
|
|
new CategoryNodeWritePublisherPlugin(), |
298
|
|
|
new CategoryTemplateDeletePublisherPlugin(), |
299
|
|
|
new CategoryTemplateWritePublisherPlugin(), |
300
|
|
|
new CategoryTreeDeletePublisherPlugin(), |
301
|
|
|
new ParentWritePublisherPlugin(), |
302
|
|
|
]; |
303
|
|
|
} |
304
|
|
|
|
305
|
|
|
/** |
306
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
307
|
|
|
*/ |
308
|
|
|
protected function getCategoryPageSearchPlugins(): array |
309
|
|
|
{ |
310
|
|
|
return [ |
311
|
|
|
new CategoryStoreSearchWritePublisherPlugin(), |
312
|
|
|
new CategoryStoreSearchWriteForPublishingPublisherPlugin(), |
313
|
|
|
new CategoryPageSearchCategoryDeletePublisherPlugin(), |
314
|
|
|
new CategoryPageSearchCategoryWritePublisherPlugin(), |
315
|
|
|
new CategoryPageSearchCategoryAttributeDeletePublisherPlugin(), |
316
|
|
|
new CategoryPageSearchCategoryAttributeWritePublisherPlugin(), |
317
|
|
|
new CategoryPageSearchCategoryNodeDeletePublisherPlugin(), |
318
|
|
|
new CategoryPageSearchCategoryNodeWritePublisherPlugin(), |
319
|
|
|
new CategoryPageSearchCategoryTemplateDeletePublisherPlugin(), |
320
|
|
|
new CategoryPageSearchCategoryTemplateWritePublisherPlugin(), |
321
|
|
|
]; |
322
|
|
|
} |
323
|
|
|
|
324
|
|
|
/** |
325
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
326
|
|
|
*/ |
327
|
|
|
protected function getProductPageSearchPlugins(): array |
328
|
|
|
{ |
329
|
|
|
return [ |
330
|
|
|
new ProductConcretePageSearchWritePublisherPlugin(), |
331
|
|
|
]; |
332
|
|
|
} |
333
|
|
|
|
334
|
|
|
/** |
335
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
336
|
|
|
*/ |
337
|
|
|
protected function getProductCategoryStoragePlugins(): array |
338
|
|
|
{ |
339
|
|
|
return [ |
340
|
|
|
new CategoryStoreWritePublisherPlugin(), |
341
|
|
|
new CategoryStoreWriteForPublishingPublisherPlugin(), |
342
|
|
|
new CategoryStoreDeletePublisherPlugin(), |
343
|
|
|
new ProductCategoryStorageCategoryWritePublisherPlugin(), |
344
|
|
|
new CategoryIsActiveAndCategoryKeyWritePublisherPlugin(), |
345
|
|
|
new ProductCategoryAttributeWritePublisherPlugin(), |
346
|
|
|
new CategoryAttributeNameWritePublisherPlugin(), |
347
|
|
|
new ProductCategoryNodeWritePublisherPlugin(), |
348
|
|
|
new CategoryUrlWritePublisherPlugin(), |
349
|
|
|
new CategoryUrlAndResourceCategorynodeWritePublisherPlugin(), |
350
|
|
|
new ProductCategoryWriteForPublishingPublisherPlugin(), |
351
|
|
|
new ProductCategoryWritePublisherPlugin(), |
352
|
|
|
]; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
357
|
|
|
*/ |
358
|
|
|
protected function getPriceProductMerchantRelationshipStoragePlugins(): array |
359
|
|
|
{ |
360
|
|
|
return [ |
361
|
|
|
new PriceProductMerchantWritePublisherPlugin(), |
362
|
|
|
]; |
363
|
|
|
} |
364
|
|
|
|
365
|
|
|
/** |
366
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
367
|
|
|
*/ |
368
|
|
|
protected function getStoreStoragePlugins(): array |
369
|
|
|
{ |
370
|
|
|
return [ |
371
|
|
|
new StoreWritePublisherPlugin(), |
372
|
|
|
new StoreSynchronizationTriggeringPublisherPlugin(), |
373
|
|
|
new CurrencyStoreWritePublisherPlugin(), |
374
|
|
|
new CountryStoreWritePublisherPlugin(), |
375
|
|
|
new LocaleStoreWritePublisherPlugin(), |
376
|
|
|
new ContextStoreWritePublisherPlugin(), |
377
|
|
|
]; |
378
|
|
|
} |
379
|
|
|
|
380
|
|
|
/** |
381
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
382
|
|
|
*/ |
383
|
|
|
protected function getAssetStoragePlugins(): array |
384
|
|
|
{ |
385
|
|
|
return [ |
386
|
|
|
new AssetWritePublisherPlugin(), |
387
|
|
|
new AssetDeletePublisherPlugin(), |
388
|
|
|
]; |
389
|
|
|
} |
390
|
|
|
|
391
|
|
|
/** |
392
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
393
|
|
|
*/ |
394
|
|
|
protected function getProductConfigurationStoragePlugins(): array |
395
|
|
|
{ |
396
|
|
|
return [ |
397
|
|
|
new ProductConfigurationWritePublisherPlugin(), |
398
|
|
|
new ProductConfigurationDeletePublisherPlugin(), |
399
|
|
|
]; |
400
|
|
|
} |
401
|
|
|
|
402
|
|
|
/** |
403
|
|
|
* @return array<int, \Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
404
|
|
|
*/ |
405
|
|
|
protected function getCustomerStoragePlugins(): array |
406
|
|
|
{ |
407
|
|
|
return [ |
408
|
|
|
new CustomerInvalidatedWritePublisherPlugin(), |
409
|
|
|
]; |
410
|
|
|
} |
411
|
|
|
|
412
|
|
|
/** |
413
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
414
|
|
|
*/ |
415
|
|
|
protected function getProductMessageBrokerPlugins(): array |
416
|
|
|
{ |
417
|
|
|
return [ |
418
|
|
|
new ProductConcreteExportedMessageBrokerPublisherPlugin(), |
419
|
|
|
new ProductConcreteCreatedMessageBrokerPublisherPlugin(), |
420
|
|
|
new ProductConcreteUpdatedMessageBrokerPublisherPlugin(), |
421
|
|
|
new ProductConcreteDeletedMessageBrokerPublisherPlugin(), |
422
|
|
|
new ProductAbstractUpdatedMessageBrokerPublisherPlugin(), |
423
|
|
|
new ProductCategoryProductUpdatedEventTriggerPlugin(), |
424
|
|
|
new ProductLabelProductUpdatedEventTriggerPlugin(), |
425
|
|
|
]; |
426
|
|
|
} |
427
|
|
|
|
428
|
|
|
/** |
429
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
430
|
|
|
*/ |
431
|
|
|
protected function getMerchantStoragePlugins(): array |
432
|
|
|
{ |
433
|
|
|
return [ |
434
|
|
|
new MerchantStoragePublisherPlugin(), |
435
|
|
|
]; |
436
|
|
|
} |
437
|
|
|
|
438
|
|
|
/** |
439
|
|
|
* @return array<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
440
|
|
|
*/ |
441
|
|
|
protected function getMerchantSearchPlugins(): array |
442
|
|
|
{ |
443
|
|
|
return [ |
444
|
|
|
new MerchantWritePublisherPlugin(), |
445
|
|
|
new MerchantDeletePublisherPlugin(), |
446
|
|
|
]; |
447
|
|
|
} |
448
|
|
|
|
449
|
|
|
/** |
450
|
|
|
* @return list<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> |
|
|
|
|
451
|
|
|
*/ |
452
|
|
|
public function getProductAbstractPageSearchPlugins(): array |
453
|
|
|
{ |
454
|
|
|
return [ |
|
|
|
|
455
|
|
|
new CategoryStoreProductAbstractPageSearchWritePublisherPlugin(), |
456
|
|
|
]; |
457
|
|
|
} |
458
|
|
|
|
459
|
|
|
/** |
460
|
|
|
* @return array |
461
|
|
|
*/ |
462
|
|
|
public function getAssetPlugins(): array |
463
|
|
|
{ |
464
|
|
|
return [ |
465
|
|
|
new RefreshAssetStoreRelationPublisherPlugin(), |
466
|
|
|
]; |
467
|
|
|
} |
468
|
|
|
|
469
|
|
|
/** |
470
|
|
|
* @return array |
471
|
|
|
*/ |
472
|
|
|
public function getTaxAppPlugins(): array |
473
|
|
|
{ |
474
|
|
|
return [ |
475
|
|
|
new RefreshTaxAppStoreRelationPublisherPlugin(), |
476
|
|
|
]; |
477
|
|
|
} |
478
|
|
|
} |
479
|
|
|
|