8000 [Messenger] Register a handler for a specific bus · symfony/symfony-docs@6ed93b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ed93b2

Browse files
dunglasjaviereguiluz
authored andcommitted
[Messenger] Register a handler for a specific bus
1 parent 05effb7 commit 6ed93b2

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