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
191
191
This way, the ``App\MessageHandler\SomeCommandHandler `` handler will only be
192
192
known by the ``messenger.bus.commands `` bus.
193
193
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
+
194
202
You can also automatically add this tag to a number of classes by following
195
203
a naming convention and registering all of the handler services by name with
196
204
the correct tag:
You can’t perform that action at this time.
0 commit comments