8000 minor #17532 [FrameworkBundle][Messenger] Extend note on routing with… · xelaris/symfony-docs@c142399 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit c142399

Browse files
committed
minor symfony#17532 [FrameworkBundle][Messenger] Extend note on routing with support for wildcard routes (brzuchal)
This PR was submitted for the 6.3 branch but it was merged into the 6.2 branch instead. Discussion ---------- [FrameworkBundle][Messenger] Extend note on routing with support for wildcard routes Extend wildcard `'*'` note with information about the usage of namespace wildcards. Commits ------- c4e2655 [Messenger] Extend note on routing with support for wildcard routes
2 parents 43729b9 + c4e2655 commit c142399

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)
0