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

Skip to content

Commit 8120f50

Browse files
committed
minor #12989 [Messenger] Note about serializer (Nyholm)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead (closes #12989). Discussion ---------- [Messenger] Note about serializer The issue is that I've multiple times heard people saying: > I like Messenger component, but it does not work if you send messages from one app to another. First I wanted to solve this issue by adding a new page just saying "YES YOU CAN". But for now, I settle with a small note and a link to Symfony Cast explaining this. There is also a great over engineered package that I believe everybody should use... but I dont feel link symfony docs is a place to promote a package like this, or is it? https://github.com/Happyr/message-serializer I think this will fix symfony/symfony#35439 Commits ------- 09d4c7a [Messenger] Note about serializer
2 parents 5e09312 + 09d4c7a commit 8120f50

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
@@ -1023,6 +1023,13 @@ If you *do* choose to use the Symfony serializer, you can control the context
10231023
on a case-by-case basis via the :class:`Symfony\\Component\\Messenger\\Stamp\\SerializerStamp`
10241024
(see `Envelopes & Stamps`_).
10251025

1026+
.. tip::
1027+
1028+
When sending/receiving messages to/from another application, it could be a good
1029+
idea to have more control over the serialization process. Using a custom serializer
1030+
provides that control. See `Symfony Casts' message serializer tutorial`_ for
1031+
details.
1032+
10261033
Customizing Handlers
10271034
--------------------
10281035

@@ -1514,3 +1521,4 @@ Learn more
15141521
.. _`Enqueue's transport`: https://github.com/sroze/messenger-enqueue-transport
15151522
.. _`streams`: https://redis.io/topics/streams-intro
15161523
.. _`Supervisor docs`: http://supervisord.org/
1524+
.. _`Symfony Casts' message serializer tutorial`: https://symfonycasts.com/screencast/messenger/transport-serializer

0 commit comments

Comments
 (0)