8000 Merge branch '4.4' into 5.1 · symfony/symfony-docs@e9e8eba · GitHub
[go: up one dir, main page]

Skip to content

Commit e9e8eba

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: [Messenger] Update the list of stamp
2 parents 846baf5 + a0f6727 commit e9e8eba

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

components/messenger.rst

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,26 @@ through the transport layer, use the ``SerializerStamp`` stamp::
142142
]))
143143
);
144144

145-
At the moment, the Symfony Messenger has the following built-in envelope stamps:
145+
Here are some important envelope stamps that are shipped with the Symfony Messenger:
146146

147-
#. :class:`Symfony\\Component\\Messenger\\Stamp\\SerializerStamp`,
148-
to configure the serialization groups used by the transport.
149-
#. :class:`Symfony\\Component\\Messenger\\Stamp\\ValidationStamp`,
150-
to configure the validation groups used when the validation middleware is enabled.
147+
#. :class:`Symfony\\Component\\Messenger\\Stamp\\DelayStamp`,
148+
to delay handling of an asynchronous message.
149+
#. :class:`Symfony\\Component\\Messenger\\Stamp\\DispatchAfterCurrentBusStamp`,
150+
to make the message be handled after the current bus has executed. Read more
151+
at :doc:`/messenger/dispatch_after_current_bus`.
152+
#. :class:`Symfony\\Component\\Messenger\\Stamp\\HandledStamp`,
153+
a stamp that marks the message as handled by a specific handler.
154+
Allows accessing the handler returned value and the handler name.
151155
#. :class:`Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp`,
152156
an internal stamp that marks the message as received from a transport.
153157
#. :class:`Symfony\\Component\\Messenger\\Stamp\\SentStamp`,
154158
a stamp that marks the message as sent by a specific sender.
155159
Allows accessing the sender FQCN and the alias if available from the
156160
:class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SendersLocator`.
157-
#. :class:`Symfony\\Component\\Messenger\\Stamp\\HandledStamp`,
158-
a stamp that marks the message as handled by a specific handler.
159-
Allows accessing the handler returned value and the handler name.
161+
#. :class:`Symfony\\Component\\Messenger\\Stamp\\SerializerStamp`,
162+
to configure the serialization groups used by the transport.
163+
#. :class:`Symfony\\Component\\Messenger\\Stamp\\ValidationStamp`,
164+
to configure the validation groups used when the validation middleware is enabled.
160165

161166
Instead of dealing directly with the messages in the middleware you receive the envelope.
162167
Hence you can inspect the envelope content and its stamps, or add any::

0 commit comments

Comments
 (0)
0