Skip to content

Commit 17db2af

Browse files
authored
[Messenger] Add default routing for messages
1 parent 0718196 commit 17db2af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

messenger.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,13 @@ you can configure them to be sent to a transport:
261261
262262
Thanks to this, the ``App\Message\SmsNotification`` will be sent to the ``async``
263263
transport and its handler(s) will *not* be called immediately. Any messages not
264-
matched under ``routing`` will still be handled immediately.
264+
matched under ``routing`` will still be handled immediately, i.e. synchronously.
265+
266+
.. note::
267+
268+
You may use ``'*'`` as the message class. This will act as a default routing
269+
rule for any message not matched uner ``routing``. This is useful to ensure
270+
no message is handled synchronously by default.
265271

266272
You can also route classes by their parent class or interface. Or send messages
267273
to multiple transports:

0 commit comments

Comments
 (0)