コード例 #1
0
 private function persistEmailMessage(Message $message, $type, $status, $arguments)
 {
     $email = new Email();
     $email->setType($type);
     $email->setBody($message->getMessage());
     $email->setEmailAddress($message->getTo());
     $email->setFrom($message->getFrom());
     $email->setSubject($message->getSubject());
     $email->setArguments($arguments);
     $email->setStatus($status);
     $this->documentManager->persist($email);
     $this->documentManager->flush();
 }
コード例 #2
0
 public function getLogContext()
 {
     $context = array('from' => $this->message->getFrom(), 'subject' => $this->message->getSubject(), 'body' => $this->message->getMessage());
     return array_merge(parent::getLogContext(), $context);
 }