/**
  * @param NotifierMessage $message
  *
  * @return bool
  * @throws NotifierException
  */
 public function send(NotifierMessage $message)
 {
     if (null === $this->notifier) {
         throw new NotifierException('Undefined sending channel');
     }
     return $this->notifier->send($message);
 }
Example #2
0
 public static function ExceptionHandler(\Exception $e)
 {
     self::$notifier->Notify($e);
 }