Skip to content

Commit 457b15d

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: [Messenger] Extend note on routing with support for wildcard routes
2 parents 9ae5140 + 2c7aa8b commit 457b15d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

messenger.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ matched under ``routing`` will still be handled immediately, i.e. synchronously.
259259

260260
.. note::
261261

262+
You may use a partial PHP namespace like ``'App\Message\*'`` to match all
263+
the messages within the matching namespace. The only requirement is that the
264+
``'*'`` wildcard has to be placed at the end of the namespace.
265+
262266
You may use ``'*'`` as the message class. This will act as a default routing
263267
rule for any message not matched under ``routing``. This is useful to ensure
264268
no message is handled synchronously by default.

0 commit comments

Comments
 (0)