From c4e26556eb2a764a3d0382036071faa3d9c657c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Brzuchalski?= Date: Wed, 7 Dec 2022 11:35:20 +0100 Subject: [PATCH] [Messenger] Extend note on routing with support for wildcard routes --- messenger.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/messenger.rst b/messenger.rst index b5d47668eef..33f2ea9d2df 100644 --- a/messenger.rst +++ b/messenger.rst @@ -259,6 +259,11 @@ matched under ``routing`` will still be handled immediately, i.e. synchronously. .. note:: + You may use ``'App\Message\*'`` combined with valid namespace. The wildcard + at the end will act as a routing for all messages within the matching namespace. + The wildcard can follow any valid namespace but has to be placed at the end. + This is useful to route all classes sharing the same namespace to the same transport. + 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.