|
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\MessageBroker; |
|
9
|
|
|
|
|
10
|
|
|
use Spryker\Zed\Asset\Communication\Plugin\MessageBroker\AssetMessageHandlerPlugin; |
|
11
|
|
|
use Spryker\Zed\KernelApp\Communication\Plugin\MessageBroker\AppConfigMessageHandlerPlugin; |
|
12
|
|
|
use Spryker\Zed\MerchantApp\Communication\Plugin\MessageBroker\MerchantAppOnboardingMessageHandlerPlugin; |
|
13
|
|
|
use Spryker\Zed\MessageBroker\Communication\Plugin\MessageBroker\CorrelationIdMessageAttributeProviderPlugin; |
|
14
|
|
|
use Spryker\Zed\MessageBroker\Communication\Plugin\MessageBroker\TenantActorMessageAttributeProviderPlugin; |
|
15
|
|
|
use Spryker\Zed\MessageBroker\Communication\Plugin\MessageBroker\TimestampMessageAttributeProviderPlugin; |
|
16
|
|
|
use Spryker\Zed\MessageBroker\Communication\Plugin\MessageBroker\TransactionIdMessageAttributeProviderPlugin; |
|
17
|
|
|
use Spryker\Zed\MessageBroker\Communication\Plugin\MessageBroker\ValidationMiddlewarePlugin; |
|
18
|
|
|
use Spryker\Zed\MessageBroker\MessageBrokerDependencyProvider as SprykerMessageBrokerDependencyProvider; |
|
19
|
|
|
use Spryker\Zed\MessageBrokerAws\Communication\Plugin\MessageBroker\Receiver\HttpChannelMessageReceiverPlugin; |
|
20
|
|
|
use Spryker\Zed\MessageBrokerAws\Communication\Plugin\MessageBroker\Sender\HttpChannelMessageSenderPlugin; |
|
21
|
|
|
use Spryker\Zed\OauthClient\Communication\Plugin\MessageBroker\AccessTokenMessageAttributeProviderPlugin; |
|
22
|
|
|
use Spryker\Zed\Payment\Communication\Plugin\MessageBroker\PaymentMethodMessageHandlerPlugin; |
|
23
|
|
|
use Spryker\Zed\Payment\Communication\Plugin\MessageBroker\PaymentOperationsMessageHandlerPlugin; |
|
24
|
|
|
use Spryker\Zed\Product\Communication\Plugin\MessageBroker\ProductExportMessageHandlerPlugin; |
|
25
|
|
|
use Spryker\Zed\ProductReview\Communication\Plugin\MessageBroker\ProductReviewAddReviewsMessageHandlerPlugin; |
|
26
|
|
|
use Spryker\Zed\SalesPaymentDetail\Communication\Plugin\MessageBroker\PaymentCreatedMessageHandlerPlugin; |
|
27
|
|
|
use Spryker\Zed\SearchHttp\Communication\Plugin\MessageBroker\SearchEndpointMessageHandlerPlugin; |
|
28
|
|
|
use Spryker\Zed\Session\Communication\Plugin\MessageBroker\SessionTrackingIdMessageAttributeProviderPlugin; |
|
29
|
|
|
use Spryker\Zed\Store\Communication\Plugin\MessageBroker\CurrentStoreReferenceMessageAttributeProviderPlugin; |
|
30
|
|
|
use Spryker\Zed\TaxApp\Communication\Plugin\MessageBroker\TaxAppMessageHandlerPlugin; |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* @method \Pyz\Zed\MessageBroker\MessageBrokerConfig getConfig() |
|
34
|
|
|
*/ |
|
35
|
|
|
class MessageBrokerDependencyProvider extends SprykerMessageBrokerDependencyProvider |
|
36
|
|
|
{ |
|
37
|
|
|
/** |
|
38
|
|
|
* @return array<\Spryker\Zed\MessageBrokerExtension\Dependency\Plugin\MessageSenderPluginInterface> |
|
39
|
|
|
*/ |
|
40
|
|
|
public function getMessageSenderPlugins(): array |
|
41
|
|
|
{ |
|
42
|
|
|
return [ |
|
43
|
|
|
new HttpChannelMessageSenderPlugin(), |
|
44
|
|
|
]; |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* @return array<\Spryker\Zed\MessageBrokerExtension\Dependency\Plugin\MessageReceiverPluginInterface> |
|
49
|
|
|
*/ |
|
50
|
|
|
public function getMessageReceiverPlugins(): array |
|
51
|
|
|
{ |
|
52
|
|
|
return [ |
|
53
|
|
|
new HttpChannelMessageReceiverPlugin(), |
|
54
|
|
|
]; |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
/** |
|
58
|
|
|
* @return array<\Spryker\Zed\MessageBrokerExtension\Dependency\Plugin\MessageHandlerPluginInterface> |
|
59
|
|
|
*/ |
|
60
|
|
|
public function getMessageHandlerPlugins(): array |
|
61
|
|
|
{ |
|
62
|
|
|
return [ |
|
63
|
|
|
new AppConfigMessageHandlerPlugin(), |
|
64
|
|
|
new PaymentMethodMessageHandlerPlugin(), |
|
65
|
|
|
new AssetMessageHandlerPlugin(), |
|
66
|
|
|
new ProductExportMessageHandlerPlugin(), |
|
67
|
|
|
new SearchEndpointMessageHandlerPlugin(), |
|
68
|
|
|
new ProductReviewAddReviewsMessageHandlerPlugin(), |
|
69
|
|
|
new TaxAppMessageHandlerPlugin(), |
|
70
|
|
|
new PaymentOperationsMessageHandlerPlugin(), |
|
71
|
|
|
new PaymentCreatedMessageHandlerPlugin(), |
|
72
|
|
|
new MerchantAppOnboardingMessageHandlerPlugin(), |
|
73
|
|
|
]; |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @return array<\Spryker\Zed\MessageBrokerExtension\Dependency\Plugin\MessageAttributeProviderPluginInterface> |
|
78
|
|
|
*/ |
|
79
|
|
|
public function getMessageAttributeProviderPlugins(): array |
|
80
|
|
|
{ |
|
81
|
|
|
return [ |
|
82
|
|
|
new CorrelationIdMessageAttributeProviderPlugin(), |
|
83
|
|
|
new TimestampMessageAttributeProviderPlugin(), |
|
84
|
|
|
new AccessTokenMessageAttributeProviderPlugin(), |
|
85
|
|
|
new TransactionIdMessageAttributeProviderPlugin(), |
|
86
|
|
|
new SessionTrackingIdMessageAttributeProviderPlugin(), |
|
87
|
|
|
new TenantActorMessageAttributeProviderPlugin(), |
|
88
|
|
|
new CurrentStoreReferenceMessageAttributeProviderPlugin(), |
|
|
|
|
|
|
89
|
|
|
]; |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
|
|
/** |
|
93
|
|
|
* @return array<\Symfony\Component\Messenger\Middleware\MiddlewareInterface> |
|
94
|
|
|
*/ |
|
95
|
|
|
public function getMiddlewarePlugins(): array |
|
96
|
|
|
{ |
|
97
|
|
|
return [ |
|
98
|
|
|
new ValidationMiddlewarePlugin(), |
|
99
|
|
|
]; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* @return array<\Spryker\Zed\MessageBrokerExtension\Dependency\Plugin\MessageValidatorPluginInterface> |
|
104
|
|
|
*/ |
|
105
|
|
|
public function getExternalValidatorPlugins(): array |
|
106
|
|
|
{ |
|
107
|
|
|
return []; |
|
108
|
|
|
} |
|
109
|
|
|
} |
|
110
|
|
|
|