Skip to content

Commit 64bfd75

Browse files
srozeweaverryan
authored andcommitted
Change wording and don't use .-based services so it's just clearer
1 parent e1f3b5a commit 64bfd75

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

messenger.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,11 @@ within the buses to add some extra capabilities like this:
253253
buses:
254254
messenger.bus.default:
255255
middleware:
256-
# Works with the FQCN if the class discovery is enabled
257-
- App\\Middleware\\MyMiddleware
256+
- "App\\Middleware\\MyMiddleware"
257+
- "App\\Middleware\\AnotherMiddleware"
258258
259-
# Or with some service name
260-
- app.middleware.yours
261-
262-
Note that if the service is abstract, then a child service will be created per bus.
259+
Note that if the service is abstract, then a different instance of service will be
260+
created per bus.
263261

264262
Disabling default middleware
265263
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)