From 09d4c7a1e6285a096e1dd286d25bf17f8d0ce9ec Mon Sep 17 00:00:00 2001 From: Nyholm Date: Sun, 26 Jan 2020 16:33:48 +0100 Subject: [PATCH] [Messenger] Note about serializer --- messenger.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/messenger.rst b/messenger.rst index 8afce615c1a..66d6350e5a0 100644 --- a/messenger.rst +++ b/messenger.rst @@ -1023,6 +1023,13 @@ If you *do* choose to use the Symfony serializer, you can control the context on a case-by-case basis via the :class:`Symfony\\Component\\Messenger\\Stamp\\SerializerStamp` (see `Envelopes & Stamps`_). +.. tip:: + + When sending/receiving messages to/from another application, it could be a good + idea to have more control over the serialization process. Using a custom serializer + provides that control. See `Symfony Casts' message serializer tutorial`_ for + details. + Customizing Handlers -------------------- @@ -1514,3 +1521,4 @@ Learn more .. _`Enqueue's transport`: https://github.com/sroze/messenger-enqueue-transport .. _`streams`: https://redis.io/topics/streams-intro .. _`Supervisor docs`: http://supervisord.org/ +.. _`Symfony Casts' message serializer tutorial`: https://symfonycasts.com/screencast/messenger/transport-serializer