@@ -228,28 +228,28 @@ your ``CommandBus`` in your services:
228228services :
229229App\CommandBus :['@messenger.bus.commands']
230230
231- Middlewares
232- -----------
231+ Middleware
232+ ----------
233233
234234What happens when you dispatch a message to a message bus(es) depends on its
235- middlewares (and their order). By default, themiddlewares configured for each
236- bus looks like this.
235+ collection of middleware (and their order). By default, themiddleware configured
236+ for each bus looks like this:
237237
2382381. ``logging `` middleware. Responsible of logging the beginning and the end of the
239239 message within the bus.
240240
241- 2. _Your ownmiddlewares __
241+ 2. _Your owncollection of middleware __
242242
2432433. ``route_messages `` middleware. Will route the messages your configured to their
244244 corresponding sender and stop the middleware chain.
245245
2462464. ``call_message_handler `` middleware. Will call the message handler(s) for the
247247 given message.
248248
249- Adding your ownmiddlewares
250- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
249+ Adding your ownmiddleware
250+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
251251
252- As described in the component documentation, you can add your ownmiddlewares
252+ As described in the component documentation, you can add your ownmiddleware
253253within the buses to add some extra capabilities like this:
254254
255255..code-block ::yaml
@@ -258,7 +258,7 @@ within the buses to add some extra capabilities like this:
258258messenger :
259259buses :
260260default :
261- middlewares :
261+ middleware :
262262# Works with the FQCN if the class discovery is enabled
263263 -App\\Middleware\\MyMiddleware
264264
@@ -267,19 +267,19 @@ within the buses to add some extra capabilities like this:
267267
268268 Note that if the service is abstract, then a child service will be created per bus.
269269
270- Disabling defaultmiddlewares
271- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
270+ Disabling defaultmiddleware
271+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
272272
273- If you don't want the defaultmiddlewares to be present on your bus, you can disable
274- them like this:
273+ If you don't want the defaultcollection of middleware to be present on your bus,
274+ you can disable them like this:
275275
276276..code-block ::yaml
277277
278278framework :
279279messenger :
280280buses :
281281default :
282- default_middlewares :false
282+ default_middleware :false
283283
284284 Your own Transport
285285------------------