/**
  * @inheritdoc
  */
 protected function getNotification($body)
 {
     $notification = new Notification();
     $notification->setReceiver($this->receiver)->setSubject($this->translator->trans($this->subject))->setBody($body);
     return $notification;
 }
Exemplo n.º 2
0
 /**
  * @param string $body
  *
  * @return NotificationInterface
  */
 protected function getNotification($body)
 {
     $notification = new Notification();
     $notification->setReceiver($this->receiver)->setBody($body);
     return $notification;
 }