8000 Middleware does not have a plural · symfony/symfony-docs@2409798 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2409798

Browse files
srozeweaverryan
authored andcommitted
Middleware does not have a plural
1 parent a20286d commit 2409798

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

messenger.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -228,28 +228,28 @@ your ``CommandBus`` in your services:
228228
services:
229229
App\CommandBus: ['@messenger.bus.commands']
230230
231-
Middlewares
232-
-----------
231+
Middleware
232+
----------
233233

234234
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:
237237

238238
1. ``logging`` middleware. Responsible of logging the beginning and the end of the
239239
message within the bus.
240240

241-
2. _Your own middlewares__
241+
2. _Your own collection of middleware__
242242

243243
3. ``route_messages`` middleware. Will route the messages your configured to their
244244
corresponding sender and stop the middleware chain.
245245

246246
4. ``call_message_handler`` middleware. Will call the message handler(s) for the
247247
given message.
248248

249-
Adding your own middlewares
250-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
249+
Adding your own middleware
250+
~~~~~~~~~~~~~~~~~~~~~~~~~~
251251

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
253253
within 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:
258258
messenger:
259259
buses:
260260
default:
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 default middlewares
271-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
270+
Disabling default middleware
271+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
272272

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:
275275

276276
.. code-block:: yaml
277277
278278
framework:
279279
messenger:
280280
buses:
281281
default:
282-
default_middlewares: false
282+
default_middleware: false
283283
284284
Your own Transport
285285
------------------

0 commit comments

Comments
 (0)
0