@@ -228,28 +228,28 @@ your ``CommandBus`` in your services:
228
228
services :
229
229
App\CommandBus : ['@messenger.bus.commands']
230
230
231
- Middlewares
232
- -----------
231
+ Middleware
232
+ ----------
233
233
234
234
What happens when you dispatch a message to a message bus(es) depends on its
235
- middlewares (and their order). By default, the middlewares configured for each
236
- bus looks like this.
235
+ collection of middleware (and their order). By default, the middleware configured
236
+ for each bus looks like this:
237
237
238
238
1. ``logging `` middleware. Responsible of logging the beginning and the end of the
239
239
message within the bus.
240
240
241
- 2. _Your own middlewares __
241
+ 2. _Your own collection of middleware __
242
242
243
243
3. ``route_messages `` middleware. Will route the messages your configured to their
244
244
corresponding sender and stop the middleware chain.
245
245
246
246
4. ``call_message_handler `` middleware. Will call the message handler(s) for the
247
247
given message.
248
248
249
- Adding your own middlewares
250
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
249
+ Adding your own middleware
250
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
251
251
252
- As described in the component documentation, you can add your own middlewares
252
+ As described in the component documentation, you can add your own middleware
253
253
within the buses to add some extra capabilities like this:
254
254
255
255
.. code-block :: yaml
@@ -258,7 +258,7 @@ within the buses to add some extra capabilities like this:
258
258
messenger :
259
259
buses :
260
260
default :
261
- middlewares :
261
+ middleware :
262
262
# Works with the FQCN if the class discovery is enabled
263
263
- App\\Middleware\\MyMiddleware
264
264
@@ -267,19 +267,19 @@ within the buses to add some extra capabilities like this:
267
267
268
268
Note that if the service is abstract, then a child service will be created per bus.
269
269
270
- Disabling default middlewares
271
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
270
+ Disabling default middleware
271
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
272
272
273
- If you don't want the default middlewares to be present on your bus, you can disable
274
- them like this:
273
+ If you don't want the default collection of middleware to be present on your bus,
274
+ you can disable them like this:
275
275
276
276
.. code-block :: yaml
277
277
278
278
framework :
279
279
messenger :
280
280
buses :
281
281
default :
282
- default_middlewares : false
282
+ default_middleware : false
283
283
284
284
Your own Transport
285
285
------------------
0 commit comments