diff --git a/scheduler.rst b/scheduler.rst index 0c6c14915c7..64a5a9f7612 100644 --- a/scheduler.rst +++ b/scheduler.rst @@ -723,10 +723,15 @@ after a message is consumed:: $schedule = $event->getSchedule(); $context = $event->getMessageContext(); $message = $event->getMessage(); + $result = $event->getResult(); - // do something with the schedule, context or message + // do something with the schedule, context, message or result } +.. versionadded:: 7.3 + + The ``getResult()`` method was introduced in Symfony 7.3. + Execute this command to find out which listeners are registered for this event and their priorities: