Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle][Messenger] Extend note on routing with support for wildcard routes #17532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down