Skip to content

Commit 6682b7b

Browse files
committed
Minor tweaks
1 parent 3c4fe2a commit 6682b7b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

messenger.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,10 +2573,10 @@ of the process. For each, the event class is the event name:
25732573
Message Serializer For Custom Data Formats
25742574
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25752575

2576-
It is likely that you receive messages from other applications that are not
2576+
If you receive messages from other applications, it's possible that they are not
25772577
exactly in the format you need. Not all applications will return a JSON message
2578-
with ``body`` and ``headers`` fields. In this case, you'll need to
2579-
create a new message serializer. This can be done by implementing the
2578+
with ``body`` and ``headers`` fields. In those cases, you'll need to create a
2579+
new message serializer implementing the
25802580
:class:`Symfony\\Component\\Messenger\\Transport\\Serialization\\SerializerInterface`.
25812581
Let's say you want to create a message decoder::
25822582

@@ -2613,7 +2613,8 @@ Let's say you want to create a message decoder::
26132613
}
26142614
}
26152615

2616-
Now that this serializer is created, you can use it in your transport:
2616+
The next step is to tell Symfony to use this serializer in one or more of your
2617+
transports:
26172618

26182619
.. configuration-block::
26192620

0 commit comments

Comments
 (0)