/** * Get actual handler instance * @return Handler * @throws \Exception */ public static function getHandler() { if (!self::$connector) { throw new \Exception('Helper is not registered. Call ' . get_called_class() . '::register()'); } if (!self::$handler) { self::$handler = Handler::getInstance(); } return self::$handler; }
public static function debug($message, $tags = 'debug') { Handler::getInstance()->debug($message, str_replace(',', '.', $tags), 1); }