public function getLogContext() { $context = array('from' => $this->message->getFrom(), 'subject' => $this->message->getSubject(), 'body' => $this->message->getMessage()); return array_merge(parent::getLogContext(), $context); }
public function onPermanentError(EmailEvent $event) { $this->persistEmailMessage($event->getMessage(), $event->getType(), Email::STATUS_PERMANENT_ERROR, $event->getArguments()); }