File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,14 @@ you can restrict each handler to a specific bus using the ``messenger.message_ha
191191 This way, the ``App\MessageHandler\SomeCommandHandler `` handler will only be
192192known by the ``messenger.bus.commands `` bus.
193193
194+ .. tip ::
195+
196+ If you manually restrict handlers be sure to have ``autoconfigure `` disabled,
197+ or not implement the ``Symfony\Component\Messenger\Handler\MessageHandlerInterface ``
198+ as this might cause your handler to be registered twice.
199+
200+ See :ref: `autoconfigure <services-autoconfigure >` for more information.
201+
194202You can also automatically add this tag to a number of classes by following
195203a naming convention and registering all of the handler services by name with
196204the correct tag:
You can’t perform that action at this time.
0 commit comments