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 @@ -197,6 +197,14 @@ you can restrict each handler to a specific bus using the ``messenger.message_ha
197197 This way, the ``App\MessageHandler\SomeCommandHandler `` handler will only be
198198known by the ``messenger.bus.commands `` bus.
199199
200+ .. tip ::
201+
202+ If you manually restrict handlers be sure to have ``autoconfigure `` disabled,
203+ or not implement the ``Symfony\Component\Messenger\Handler\MessageHandlerInterface ``
204+ as this might cause your handler to be registered twice.
205+
206+ See :ref: `service autoconfiguration <services-autoconfigure >` for more information.
207+
200208You can also automatically add this tag to a number of classes by following
201209a naming convention and registering all of the handler services by name with
202210the correct tag:
You can’t perform that action at this time.
0 commit comments