diff --git a/messenger.rst b/messenger.rst index 605561e39d5..b5926c05d2a 100644 --- a/messenger.rst +++ b/messenger.rst @@ -261,7 +261,13 @@ you can configure them to be sent to a transport: Thanks to this, the ``App\Message\SmsNotification`` will be sent to the ``async`` transport and its handler(s) will *not* be called immediately. Any messages not -matched under ``routing`` will still be handled immediately. +matched under ``routing`` will still be handled immediately, i.e. synchronously. + +.. note:: + + You may use ``'*'`` as the message class. This will act as a default routing + rule for any message not matched under ``routing``. This is useful to ensure + no message is handled synchronously by default. You can also route classes by their parent class or interface. Or send messages to multiple transports: