@@ -89,10 +89,11 @@ that will do the required processing for your message::
89
89
Envelope
90
90
--------
91
91
92
- The notion of an envelope is a concept that helps us to add some context around the
93
- messages. An envelope is a message and a set of items. On a user perspective, this
94
- allows to set some configuration around the message. For example the serialization
95
- groups used when the message goes through the transport layer::
92
+ The notion of an envelope is a concept that helps add context around the
93
+ messages. An envelope is a message and a set of data. From a user's perspective, this
94
+ allows you to set some configuration around the message. For example, to set the serialization
95
+ groups used when the message goes through the transport layer, wrap your message
96
+ in an ``Envelope `` and add some ``SerializerConfiguration ``::
96
97
97
98
use Symfony\Component\Messenger\Envelope;
98
99
use Symfony\Component\Messenger\Transport\Serialization\SerializerConfiguration;
@@ -103,9 +104,9 @@ groups used when the message goes through the transport layer::
103
104
]))
104
105
);
105
106
106
- Instead of dealing directly with the messages in the handlers and middleware you
107
- can receive the envelope by implementing the ``EnvelopeAwareInterface `` marker
108
- interface on your middleware or handler like this::
107
+ Instead of dealing directly with the message in the handlers or middleware, you
108
+ can receive the envelope by implementing the ``EnvelopeAwareInterface `` marker,
109
+ like this::
109
110
110
111
use Symfony\Component\Messenger\Middleware\MiddlewareInterface;
111
112
use Symfony\Component\Messenger\EnvelopeAwareInterface;
0 commit comments