/** * @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()); }
/** * @inheritDoc */ public function handle(NotificationInterface $notification) { $this->getPublisher()->basic_publish($notification->getMessage()); }