Skip to content

Commit 03ed48e

Browse files
ruudkwouterj
authored andcommitted
Explain how to add from_transport on messenger.message_handler tag
1 parent d60f859 commit 03ed48e

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
@@ -1223,6 +1223,15 @@ Then, make sure to "route" your message to *both* transports:
12231223
12241224
That's it! You can now consume each transport:
12251225

1226+
.. note::
1227+
1228+
It is possible to specify ``from_transport`` as attribute on the ``messenger.message_handler`` tag.
1229+
1230+
.. versionadded:: 4.4
1231+
1232+
The ability to specify ``from_transport`` on the ``messenger.message_handler`` tag
1233+
itself, was added in Symfony 4.4.
1234+
12261235
.. code-block:: terminal
12271236
12281237
# will only call ThumbnailUploadedImageHandler when handling the message

0 commit comments

Comments
 (0)