/** * {@inheritdoc} */ public function handle(NotificationInterface $notification) { /** @var ChainedNotificationInterface $notification */ foreach ($notification->getNotifications() as $notify) { $this->manager->trigger($notify); } }
/** * @inheritDoc */ public function handle(NotificationInterface $notification) { foreach ($notification->getRecipientAddresses() as $recipientAddress) { $this->getEmailClient()->sendEmail($notification->getEmailTemplate(), $recipientAddress, $notification->getParameters()); } return true; }
/** * @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); }
/** * @inheritDoc */ public function handle(NotificationInterface $notification) { $this->getClient()->sendSms($notification->getRecipientNumber(), $notification->getMessage()); return true; }
/** * @inheritDoc */ public function handle(NotificationInterface $notification) { $this->getMailer()->send($notification->getMessage()); return true; }
/** * {@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); }
public function handle(NotificationInterface $notification) { mail($notification->getRecipientAddress(), $notification->subject, $notification->body); }
/** * @inheritDoc */ public function handle(NotificationInterface $notification) { $this->getPublisher()->basic_publish($notification->getMessage()); }