Skip to content

Commit 87cb74d

Browse files
committed
feature #12231 Explain how to add from_transport on messenger.message_handler tag (ruudk)
This PR was squashed before being merged into the 4.4 branch (closes #12231). Discussion ---------- Explain how to add `from_transport` on `messenger.message_handler` tag See symfony/symfony#33317 Commits ------- 03ed48e Explain how to add `from_transport` on `messenger.message_handler` tag
2 parents dd8ff15 + 03ed48e commit 87cb74d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

messenger.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,15 @@ Then, make sure to "route" your message to *both* transports:
12291229
12301230
That's it! You can now consume each transport:
12311231

1232+
.. note::
1233+
1234+
It is possible to specify ``from_transport`` as attribute on the ``messenger.message_handler`` tag.
1235+
1236+
.. versionadded:: 4.4
1237+
1238+
The ability to specify ``from_transport`` on the ``messenger.message_handler`` tag
1239+
itself, was added in Symfony 4.4.
1240+
12321241
.. code-block:: terminal
12331242
12341243
# will only call ThumbnailUploadedImageHandler when handling the message

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy