We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f83b9e commit d4f08a1Copy full SHA for d4f08a1
messenger/multiple_buses.rst
@@ -223,6 +223,18 @@ you can determine the message bus based on an implemented interface:
223
->tag('messenger.message_handler', ['bus' => 'query.bus']);
224
};
225
226
+ .. code-block:: php-attributes
227
+
228
+ // src/MessageHandler/CommandHandlerInterface.php
229
+ namespace App\MessageHandler;
230
231
+ use Symfony\Component\DependencyInjection\Attribute\Autoconfigure;
232
233
+ #[Autoconfigure(tags: [['name' => 'messenger.message_handler', 'bus' => 'command.bus']])]
234
+ interface CommandHandlerInterface
235
+ {
236
+ }
237
238
Debugging the Buses
239
-------------------
240
0 commit comments