Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2409798

Browse files
srozeweaverryan
authored andcommitted
Middleware does not have a plural
1 parenta20286d commit2409798

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, themiddlewares configured for each
236-
bus looks like this.
235+
collection of middleware(and their order). By default, themiddleware configured
236+
for eachbus 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 ownmiddlewares__
241+
2. _Your owncollection ofmiddleware__
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 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
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 defaultmiddlewares
271-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
270+
Disabling defaultmiddleware
271+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
272272

273-
If you don't want the defaultmiddlewaresto be present on your bus, you can disable
274-
them like this:
273+
If you don't want the defaultcollection of middlewareto be present on your bus,
274+
you can disablethem 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)

[8]ページ先頭

©2009-2025 Movatter.jp