Skip to content

Commit 8e6fea0

Browse files
committed
minor #10677 [Messenger] Added handled & sent stamps (ogizanagi)
This PR was merged into the master branch. Discussion ---------- [Messenger] Added handled & sent stamps Fixes #10661 Commits ------- dcc498c [Messenger] Added handled & sent stamps
2 parents 9a79ca2 + dcc498c commit 8e6fea0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

components/messenger.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,15 @@ At the moment, the Symfony Messenger has the following built-in envelope stamps:
119119
#. :class:`Symfony\\Component\\Messenger\\Stamp\\ValidationStamp`,
120120
to configure the validation groups used when the validation middleware is enabled.
121121
#. :class:`Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp`,
122-
an internal item that marks the message as received from a transport.
122+
an internal stamp that marks the message as received from a transport.
123+
#. :class:`Symfony\\Component\\Messenger\\Stamp\\SentStamp`,
124+
a stamp that marks the message as sent by a specific sender.
125+
Allows accessing the sender FQCN and the alias if available from the
126+
:class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SendersLocator`.
127+
#. :class:`Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp`,
128+
a stamp that marks the message as handled by a specific handler.
129+
Allows accessing the handler returned value, the handler callable name
130+
and its alias if available from the :class:`Symfony\\Component\\Messenger\\Handler\\HandlersLocator`.
123131

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

0 commit comments

Comments
 (0)