Skip to content

Commit e24fb9a

Browse files
committed
[Scheduler] Add MessageHandler result to the PostRunEvent
1 parent c91904c commit e24fb9a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scheduler.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -723,10 +723,15 @@ after a message is consumed::
723723
$schedule = $event->getSchedule();
724724
$context = $event->getMessageContext();
725725
$message = $event->getMessage();
726+
$result = $event->getResult();
726727

727-
// do something with the schedule, context or message
728+
// do something with the schedule, context, message or result
728729
}
729730

731+
.. versionadded:: 7.3
732+
733+
The ``getResult()`` method was introduced in Symfony 7.3.
734+
730735
Execute this command to find out which listeners are registered for this event
731736
and their priorities:
732737

0 commit comments

Comments
 (0)