Skip to content

Commit 02fac3b

Browse files
committed
minor #19666 [Messenger] Mention ScheduledStamp (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [Messenger] Mention `ScheduledStamp` Fix #18655 (kind of internal though, so it's not properly mentioned) Fix #18677 Commits ------- 037dd18 [Messenger] Mention `ScheduledStamp`
2 parents 05e86b4 + 037dd18 commit 02fac3b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

components/messenger.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,15 @@ Here are some important envelope stamps that are shipped with the Symfony Messen
162162
to configure the validation groups used when the validation middleware is enabled.
163163
* :class:`Symfony\\Component\\Messenger\\Stamp\\ErrorDetailsStamp`,
164164
an internal stamp when a message fails due to an exception in the handler.
165+
* :class:`Symfony\\Component\\Messenger\\Stamp\\ScheduledStamp`,
166+
a stamp that marks the message as produced by a scheduler. You can learn
167+
more about it in the :doc:`Scheduler component page </scheduler>`. This helps
168+
differentiate from messages created "manually".
169+
170+
.. versionadded:: 6.4
171+
172+
The :class:`Symfony\\Component\\Messenger\\Stamp\\ScheduledStamp` was
173+
introduced in Symfony 6.4.
165174

166175
.. note::
167176

scheduler.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,15 @@ before being further redispatched to its corresponding handler::
914914
}
915915
}
916916

917+
When using the ``RedispatchMessage``, a
918+
:class:`Symfony\\Component\\Messenger\\Stamp\\ScheduledStamp` will be attached
919+
to the message, helping you identify those messages when needed.
920+
921+
.. versionadded:: 6.4
922+
923+
Automatically attaching a :class:`Symfony\\Component\\Messenger\\Stamp\\ScheduledStamp`
924+
to redispatched messages was introduced in Symfony 6.4.
925+
917926
.. _`Memoizing`: https://en.wikipedia.org/wiki/Memoization
918927
.. _`cron command-line utility`: https://en.wikipedia.org/wiki/Cron
919928
.. _`crontab.guru website`: https://crontab.guru/

0 commit comments

Comments
 (0)