/** * @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); }
public static function ExceptionHandler(\Exception $e) { self::$notifier->Notify($e); }