Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
expected_queue.php
Go to the documentation of this file.
1 <?php
7 return [
8  'publishers' => [
9  'test-publisher-1' => [
10  'name' => 'test-publisher-1',
11  'connection' => 'amqp',
12  'exchange' => 'magento',
13  ],
14  'test-publisher-2' => [
15  'name' => 'test-publisher-2',
16  'connection' => 'db',
17  'exchange' => 'magento',
18  ],
19  'test-publisher-3' => [
20  'name' => 'test-publisher-3',
21  'connection' => 'amqp',
22  'exchange' => 'test-exchange-1',
23  ],
24  ],
25  'topics' => [
26  'customer.created' => [
27  'name' => 'customer.created',
28  'schema' => [
29  'schema_type' => 'object',
30  'schema_value' => \Magento\Customer\Api\Data\CustomerInterface::class
31  ],
32  'publisher' => 'test-publisher-1',
33  "response_schema" => [
34  "schema_type" => null,
35  "schema_value" => null
36  ],
37  'is_synchronous' => false,
38  ],
39  'customer.created.one' => [
40  'name' => 'customer.created.one',
41  'schema' => [
42  'schema_type' => 'object',
43  'schema_value' => \Magento\Customer\Api\Data\CustomerInterface::class
44  ],
45  'publisher' => 'test-publisher-1',
46  "response_schema" => [
47  "schema_type" => null,
48  "schema_value" => null
49  ],
50  'is_synchronous' => false,
51  ],
52  'customer.created.one.two' => [
53  'name' => 'customer.created.one.two',
54  'schema' => [
55  'schema_type' => 'object',
56  'schema_value' => \Magento\Customer\Api\Data\CustomerInterface::class
57  ],
58  'publisher' => 'test-publisher-1',
59  "response_schema" => [
60  "schema_type" => null,
61  "schema_value" => null
62  ],
63  'is_synchronous' => false,
64  ],
65  'customer.created.two' => [
66  'name' => 'customer.created.two',
67  'schema' => [
68  'schema_type' => 'object',
69  'schema_value' => \Magento\Customer\Api\Data\CustomerInterface::class
70  ],
71  'publisher' => 'test-publisher-1',
72  "response_schema" => [
73  "schema_type" => null,
74  "schema_value" => null
75  ],
76  'is_synchronous' => false,
77  ],
78  'customer.updated' => [
79  'name' => 'customer.updated',
80  'schema' => [
81  'schema_type' => 'object',
82  'schema_value' => \Magento\Customer\Api\Data\CustomerInterface::class
83  ],
84  'publisher' => 'test-publisher-2',
85  "response_schema" => [
86  "schema_type" => null,
87  "schema_value" => null
88  ],
89  'is_synchronous' => false,
90  ],
91  'customer.deleted' => [
92  'name' => 'customer.deleted',
93  'schema' => [
94  'schema_type' => 'object',
95  'schema_value' => \Magento\Customer\Api\Data\CustomerInterface::class
96  ],
97  'publisher' => 'test-publisher-2',
98  "response_schema" => [
99  "schema_type" => null,
100  "schema_value" => null
101  ],
102  'is_synchronous' => false,
103  ],
104  'cart.created' => [
105  'name' => 'cart.created',
106  'schema' => [
107  'schema_type' => 'object',
108  'schema_value' => \Magento\Quote\Api\Data\CartInterface::class
109  ],
110  'publisher' => 'test-publisher-3',
111  "response_schema" => [
112  "schema_type" => null,
113  "schema_value" => null
114  ],
115  'is_synchronous' => false,
116  ],
117  'cart.created.one' => [
118  'name' => 'cart.created.one',
119  'schema' => [
120  'schema_type' => 'object',
121  'schema_value' => \Magento\Quote\Api\Data\CartInterface::class
122  ],
123  'publisher' => 'test-publisher-3',
124  "response_schema" => [
125  "schema_type" => null,
126  "schema_value" => null
127  ],
128  'is_synchronous' => false,
129  ],
130  ],
131  'consumers' => [
132  'customerCreatedListener' => [
133  'name' => 'customerCreatedListener',
134  'queue' => 'test-queue-1',
135  'connection' => 'amqp',
136  'max_messages' => null,
137  'instance_type' => 'Test\Executor',
138  'consumer_type' => 'async',
139  'handlers' => [
140  'customer.created' => [
141  'defaultHandler' => [
142  'type' => 'Data\Type',
143  'method' => 'processMessage'
144  ]
145  ],
146  'customer.created.one' => [
147  'defaultHandler' => [
148  'type' => 'Data\Type',
149  'method' => 'processMessage'
150  ]
151  ],
152  'customer.created.one.two' => [
153  'defaultHandler' => [
154  'type' => 'Data\Type',
155  'method' => 'processMessage'
156  ]
157  ],
158  'customer.created.two' => [
159  'defaultHandler' => [
160  'type' => 'Data\Type',
161  'method' => 'processMessage'
162  ]
163  ],
164  'customer.updated' => [
165  'defaultHandler' => [
166  'type' => 'Data\Type',
167  'method' => 'processMessage'
168  ]
169  ],
170  'cart.created' => [
171  'defaultHandler' => [
172  'type' => 'Data\Type',
173  'method' => 'processMessage'
174  ]
175  ]
176  ]
177  ],
178  'customerDeletedListener' => [
179  'name' => 'customerDeletedListener',
180  'queue' => 'test-queue-2',
181  'connection' => 'db',
182  'max_messages' => '98765',
183  'instance_type' => null,
184  'consumer_type' => 'async',
185  'handlers' => [
186  'customer.created' => [
187  'defaultHandler' => [
188  'type' => 'Other\Type',
189  'method' => 'processMessage2'
190  ]
191  ],
192  'customer.deleted' => [
193  'defaultHandler' => [
194  'type' => 'Other\Type',
195  'method' => 'processMessage2'
196  ]
197  ]
198  ]
199  ],
200  'cartCreatedListener' => [
201  'name' => 'cartCreatedListener',
202  'queue' => 'test-queue-3',
203  'connection' => 'amqp',
204  'max_messages' => null,
205  'instance_type' => null,
206  'consumer_type' => 'async',
207  'handlers' => [
208  'cart.created' => [
209  'defaultHandler' => [
210  'type' => 'Other\Type',
211  'method' => 'processMessage3'
212  ]
213  ],
214  'cart.created.one' => [
215  'defaultHandler' => [
216  'type' => 'Other\Type',
217  'method' => 'processMessage3'
218  ]
219  ]
220  ]
221  ],
222  ],
223  'binds' => [
224  'customer.created--magento--test-queue-1' =>
225  ['queue' => "test-queue-1", 'exchange' => "magento", 'topic' => "customer.created"],
226  'customer.created.one--magento--test-queue-1' =>
227  ['queue' => "test-queue-1", 'exchange' => "magento", 'topic' => "customer.created.one"],
228  'customer.created.one.two--magento--test-queue-1' =>
229  ['queue' => "test-queue-1", 'exchange' => "magento", 'topic' => "customer.created.one.two"],
230  'customer.created.two--magento--test-queue-1' =>
231  ['queue' => "test-queue-1", 'exchange' => "magento", 'topic' => "customer.created.two"],
232  'customer.updated--magento--test-queue-1' =>
233  ['queue' => "test-queue-1", 'exchange' => "magento", 'topic' => "customer.updated"],
234  'cart.created--test-exchange-1--test-queue-1' =>
235  ['queue' => "test-queue-1", 'exchange' => "test-exchange-1", 'topic' => "cart.created"],
236  'customer.created--magento--test-queue-2' =>
237  ['queue' => "test-queue-2", 'exchange' => "magento", 'topic' => "customer.created"],
238  'customer.deleted--magento--test-queue-2' =>
239  ['queue' => "test-queue-2", 'exchange' => "magento", 'topic' => "customer.deleted"],
240  'cart.created--magento--test-queue-3' =>
241  ['queue' => "test-queue-3", 'exchange' => "magento", 'topic' => "cart.created"],
242  'cart.created.one--magento--test-queue-3' =>
243  ['queue' => "test-queue-3", 'exchange' => "magento", 'topic' => "cart.created.one"],
244  'cart.created--test-exchange-1--test-queue-3' =>
245  ['queue' => "test-queue-3", 'exchange' => "test-exchange-1", 'topic' => "cart.created"],
246  'customer.*--magento--test-queue-4' =>
247  ['queue' => "test-queue-4", 'exchange' => "magento", 'topic' => "customer.*"],
248  'customer.#--magento--test-queue-5' =>
249  ['queue' => "test-queue-5", 'exchange' => "magento", 'topic' => "customer.#"],
250  'customer.*.one--magento--test-queue-6' =>
251  ['queue' => "test-queue-6", 'exchange' => "magento", 'topic' => "customer.*.one"],
252  '*.created.*--magento--test-queue-7' =>
253  ['queue' => "test-queue-7", 'exchange' => "magento", 'topic' => "*.created.*"],
254  '*.created.#--magento--test-queue-8' =>
255  ['queue' => "test-queue-8", 'exchange' => "magento", 'topic' => "*.created.#"],
256  '#--magento--test-queue-9' =>
257  ['queue' => "test-queue-9", 'exchange' => "magento", 'topic' => "#"],
258  ],
259  'exchange_topic_to_queues_map' => [
260  'magento--customer.created' => ['test-queue-1', 'test-queue-2', 'test-queue-4', 'test-queue-5', 'test-queue-9'],
261  'magento--customer.created.one' =>
262  ['test-queue-1', 'test-queue-5', 'test-queue-6', 'test-queue-7', 'test-queue-8', 'test-queue-9'],
263  'magento--customer.created.one.two' => ['test-queue-1', 'test-queue-5', 'test-queue-8', 'test-queue-9'],
264  'magento--customer.created.two' =>
265  ['test-queue-1', 'test-queue-5', 'test-queue-7', 'test-queue-8', 'test-queue-9'],
266  'magento--customer.updated' => ['test-queue-1', 'test-queue-4', 'test-queue-5', 'test-queue-9'],
267  'test-exchange-1--cart.created' => ['test-queue-1', 'test-queue-3'],
268  'magento--customer.deleted' => ['test-queue-2', 'test-queue-4', 'test-queue-5', 'test-queue-9'],
269  'magento--cart.created' => ['test-queue-3', 'test-queue-9'],
270  'magento--cart.created.one' => ['test-queue-3', 'test-queue-7', 'test-queue-8', 'test-queue-9'],
271  ]
272 ];