Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Scheduler] Add MessageHandler result to the PostRunEvent #20804

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scheduler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
Loading