Skip to content

Commit 1a198b4

Browse files
committed
Minor tweak
1 parent be197cf commit 1a198b4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

components/messenger.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,12 @@ through the transport layer, use the ``SerializerStamp`` stamp::
135135

136136
$bus->dispatch(
137137
(new Envelope($message))->with(new SerializerStamp([
138+
// groups are applied to the whole message, so make sure
139+
// to define the group for every embedded object
138140
'groups' => ['my_serialization_groups'],
139141
]))
140142
);
141143

142-
.. note::
143-
144-
As the groups are applied to the whole message,
145-
be sure to define the group for every embedded object.
146-
147144
At the moment, the Symfony Messenger has the following built-in envelope stamps:
148145

149146
#. :class:`Symfony\\Component\\Messenger\\Stamp\\SerializerStamp`,

0 commit comments

Comments
 (0)