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 8f71b8bCopy full SHA for 8f71b8b
messenger/multiple_buses.rst
@@ -154,6 +154,18 @@ you can determine the message bus based on an implemented interface:
154
155
.. configuration-block::
156
157
+ .. code-block:: php-attributes
158
+
159
+ // src/MessageHandler/CommandHandlerInterface.php
160
+ namespace App\MessageHandler;
161
162
+ use Symfony\Component\DependencyInjection\Attribute\Autoconfigure;
163
164
+ #[Autoconfigure(tags: [['name' => 'messenger.message_handler', 'bus' => 'command.bus']])]
165
+ interface CommandHandlerInterface
166
+ {
167
+ }
168
169
.. code-block:: yaml
170
171
# config/services.yaml
0 commit comments