File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2573,10 +2573,10 @@ of the process. For each, the event class is the event name:
2573
2573
Message Serializer For Custom Data Formats
2574
2574
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2575
2575
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
2577
2577
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
2580
2580
:class: `Symfony\\ Component\\ Messenger\\ Transport\\ Serialization\\ SerializerInterface `.
2581
2581
Let's say you want to create a message decoder::
2582
2582
@@ -2613,7 +2613,8 @@ Let's say you want to create a message decoder::
2613
2613
}
2614
2614
}
2615
2615
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:
2617
2618
2618
2619
.. configuration-block ::
2619
2620
You can’t perform that action at this time.
0 commit comments