8000 minor #10487 [Messenger] Register a handler for a specific bus (dunglas) · symfony/symfony-docs@4fd1777 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4fd1777

Browse files
committed
minor #10487 [Messenger] Register a handler for a specific bus (dunglas)
This PR was squashed before being merged into the 4.1 branch (closes #10487). Discussion ---------- [Messenger] Register a handler for a specific bus This is currently not documented. Commits ------- 6ed93b2 [Messenger] Register a handler for a specific bus
2 parents ff16844 + 6ed93b2 commit 4fd1777

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

messenger.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,12 @@ this:
449449
This will generate the ``messenger.bus.commands`` and ``messenger.bus.events`` services
450450
that you can inject in your services.
451451

452+
.. note::
453+
454+
To register a handler for only a specific bus, add a ``bus`` attribute having the
455+
name of this bus as value to the ``messenger.message_handler`` tag in the handler's
456+
service definition.
457+
452458
Type-hints and Auto-wiring
453459
~~~~~~~~~~~~~~~~~~~~~~~~~~
454460

0 commit comments

Comments
 (0)
0