Exemplo n.º 1
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);
 }