Skip to content

Commit 27e3a0f

Browse files
committed
[Messenger] Note about serializer
1 parent 551eb75 commit 27e3a0f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

messenger.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,13 @@ If you *do* choose to use the Symfony serializer, you can control the context
989989
on a case-by-case basis via the :class:`Symfony\\Component\\Messenger\\Stamp\\SerializerStamp`
990990
(see `Envelopes & Stamps`_).
991991

992+
.. tip::
993+
994+
When sending/receiving messages to/from another application, it could be a good
995+
idea to have more control over the serialization process. Using a custom serializer
996+
provides that control. See `Symfony Casts' message serializer tutorial`_ for
997+
details.
998+
992999
Customizing Handlers
9931000
--------------------
9941001

@@ -1476,3 +1483,4 @@ Learn more
14761483
.. _`Enqueue's transport`: https://github.com/php-enqueue/messenger-adapter
14771484
.. _`streams`: https://redis.io/topics/streams-intro
14781485
.. _`Supervisor docs`: http://supervisord.org/
1486+
.. _`Symfony Casts' message serializer tutorial`: https://symfonycasts.com/screencast/messenger/transport-serializer

0 commit comments

Comments
 (0)