Skip to content

Commit 530f871

Browse files
committed
minor #13707 Add a note about allow_no_handlers option (Nek-)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- Add a note about allow_no_handlers option This option was not documented at this state. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 8f24431 Add a note about allow_no_handlers option
2 parents 078e32a + 8f24431 commit 530f871

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

messenger/multiple_buses.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ This will create three new services:
105105

106106
* ``event.bus``: autowireable with ``MessageBusInterface $eventBus``.
107107

108+
.. note::
109+
110+
The ``allow_no_handlers`` option allows ``event.bus`` to have no handler configured
111+
and as a result, it will not end up with error if you define no handler for this bus.
112+
108113
Restrict Handlers per Bus
109114
-------------------------
110115

0 commit comments

Comments
 (0)