Skip to content

Commit c4e2655

Browse files
brzuchaljaviereguiluz
authored andcommitted
[Messenger] Extend note on routing with support for wildcard routes
1 parent 43729b9 commit c4e2655

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
@@ -259,6 +259,11 @@ matched under ``routing`` will still be handled immediately, i.e. synchronously.
259259

260260
.. note::
261261

262+
You may use ``'App\Message\*'`` combined with valid namespace. The wildcard
263+
at the end will act as a routing for all messages within the matching namespace.
264+
The wildcard can follow any valid namespace but has to be placed at the end.
265+
This is useful to route all classes sharing the same namespace to the same transport.
266+
262267
You may use ``'*'`` as the message class. This will act as a default routing
263268
rule for any message not matched under ``routing``. This is useful to ensure
264269
no message is handled synchronously by default.

0 commit comments

Comments
 (0)