Example #1
0
 /**
  * {@inheritdoc}
  */
 public function handle(NotificationInterface $notification)
 {
     /** @var ChainedNotificationInterface $notification */
     foreach ($notification->getNotifications() as $notify) {
         $this->manager->trigger($notify);
     }
 }
Example #2
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     foreach ($notification->getRecipientAddresses() as $recipientAddress) {
         $this->getEmailClient()->sendEmail($notification->getEmailTemplate(), $recipientAddress, $notification->getParameters());
     }
     return true;
 }
Example #3
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     $notify = $notification->getParameter('hipchat_notify');
     $color = $notification->getParameter('hipchat_color') ?: HipChatClient::COLOR_YELLOW;
     $format = $notification->getParameter('hipchat_message_format') ?: HipChatClient::FORMAT_TEXT;
     $this->getHipchat()->message_room($notification->getHipChatRoom(), $notification->getHipChatSenderId(), $notification->getMessage(), isset($notify) ? $notify : true, $color, $format);
 }
Example #4
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     $this->getClient()->sendSms($notification->getRecipientNumber(), $notification->getMessage());
     return true;
 }
Example #5
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     $this->getMailer()->send($notification->getMessage());
     return true;
 }
Example #6
0
 /**
  * {@inheritdoc}
  */
 public function handle(NotificationInterface $notification)
 {
     /* @var TwilioNotification $notification */
     $this->twilio->account->messages->sendMessage($this->twilioNumber, $notification->getRecipientNumber(), $notification->getMessage());
 }
 public function handle(NotificationInterface $notification)
 {
     $to = implode(',', $notification->getRecipientAddresses());
     mail($to, $notification->subject, $notification->body);
 }
Example #8
0
 public function handle(NotificationInterface $notification)
 {
     mail($notification->getRecipientAddress(), $notification->subject, $notification->body);
 }
Example #9
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     $this->getPublisher()->basic_publish($notification->getMessage());
 }