Example #1
0
 public function service(AlertInterface $alert)
 {
     $this->getMailer()->send($alert->getPayload());
     return true;
 }
Example #2
0
 public function service(AlertInterface $alert)
 {
     return $this->slack->from($alert->getUser())->to($alert->getChannel())->send($alert->getPayload());
 }
Example #3
0
 public function service(AlertInterface $alert)
 {
     return $this->sms->account->messages->sendMessage($alert->getSmsFromNumber(), $alert->getSmsToNumber(), $alert->getPayload());
 }