| 1 | <?php |
||
| 14 | abstract class AbstractMailListener extends AbstractListenerAggregate implements MailListenerInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param EventManagerInterface $events |
||
| 18 | * @param int $priority |
||
| 19 | */ |
||
| 20 | public function attach(EventManagerInterface $events, $priority = 1) |
||
| 26 | 4 | ||
| 27 | 4 | /** |
|
| 28 | 4 | * Called before sending the email |
|
| 29 | * @param MailEvent $e |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function onPreSend(MailEvent $e) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Called after sending the email |
||
| 39 | * @param MailEvent $e |
||
| 40 | * @return mixed |
||
| 41 | */ |
||
| 42 | public function onPostSend(MailEvent $e) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Called if an error occurs while sending the email |
||
| 49 | * @param MailEvent $e |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | public function onSendError(MailEvent $e) |
||
| 56 | } |
||
| 57 |