Skip to content

Commit 917dff9

Browse files
committed
fix autoreview
1 parent 4b811f4 commit 917dff9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

notifier/events.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ The Transport class of the Notifier component allows you to optionally hook
88
into the lifecycle via events. Instead of reinventing
99
the wheel, it uses the Symfony EventDispatcher component to do the work::
1010

11-
1211
The ``MessageEvent::class`` Event
1312
--------------------------
1413

1514
**Typical Purposes**: Doing something before the message is send (like logging
16-
which message is going to be send), or displaying something about the event
15+
which message is going to be send, or displaying something about the event
1716
to be executed.
1817

1918
Just before send the message, the event class ``MessageEvent`` is
@@ -26,8 +25,8 @@ dispatched. Listeners receive a
2625
// gets the message instance
2726
$message = $event->getMessage();
2827

29-
// log something
30-
$this->logger(sprintf("Message with subject: %s will be send to %s, $message->getSubject(), $message->getRecipientId()"));
28+
// log something
29+
$this->logger(sprintf("Message with subject: %s will be send to %s, $message->getSubject(), $message->getRecipientId()"));
3130
});
3231

3332
The ``FailedMessageEvent`` Event
@@ -50,8 +49,8 @@ Listeners receive a
5049
// gets the error instance
5150
$error = $event->getError();
5251

53-
// log something
54-
$this->logger(sprintf("The message with subject: %s has not been sent successfully. The error is: %s, $message->getSubject(), $error->getMessage()"));
52+
// log something
53+
$this->logger(sprintf("The message with subject: %s has not been sent successfully. The error is: %s, $message->getSubject(), $error->getMessage()"));
5554
});
5655

5756

@@ -71,6 +70,6 @@ dispatched. Listeners receive a
7170
// gets the message instance
7271
$message = $event->getOriginalMessage();
7372

74-
// log something
75-
$this->logger(sprintf("The message has been successfully sent and have id: %s, $message->getMessageId()"));
73+
// log something
74+
$this->logger(sprintf("The message has been successfully sent and have id: %s, $message->getMessageId()"));
7675
});

0 commit comments

Comments
 (0)