Skip to content

Commit 6e4ab82

Browse files
committed
[Messenger] Extend note on routing with support for wildcard routes
1 parent 4a07f5a commit 6e4ab82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

messenger.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ matched under ``routing`` will still be handled immediately, i.e. synchronously.
264264

265265
.. note::
266266

267+
You may use ``'App\Message\*'`` combined with valid namespace. The wildcard
268+
at the end will act as a routing for all messages within the matching namespace.
269+
The wildcard can follow any valid namespace but has to be placed at the end.
270+
This is useful to route all classes sharing the same namespace to the same transport.
271+
267272
You may use ``'*'`` as the message class. This will act as a default routing
268273
rule for any message not matched under ``routing``. This is useful to ensure
269274
no message is handled synchronously by default.

0 commit comments

Comments
 (0)