Skip to content

Commit 8bc9a11

Browse files
committed
bug #19998 [Notifier] Fix code example for SentMessageEvent (jeremyjumeau)
This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] Fix code example for `SentMessageEvent` <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 429d700 fix: notifier code example for SentMessageEvent
2 parents 4e9cd70 + 429d700 commit 8bc9a11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notifier.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ is dispatched. Listeners receive a
892892

893893
$dispatcher->addListener(SentMessageEvent::class, function (SentMessageEvent $event) {
894894
// gets the message instance
895-
$message = $event->getOriginalMessage();
895+
$message = $event->getMessage();
896896

897897
// log something
898898
$this->logger(sprintf('The message has been successfully sent and has id: %s', $message->getMessageId()));

0 commit comments

Comments
 (0)