add Middleware and release version 1.1.0

This commit is contained in:
whale
2020-03-29 16:29:02 +08:00
parent c2fcdf9668
commit 9a28126765
11 changed files with 175 additions and 21 deletions

View File

@@ -51,6 +51,7 @@ class ZMBuf
public static $atomics;
public static $req_mapping = [];
public static $config = [];
public static $context = [];
static function get($name, $default = null) {
return self::$cache[$name] ?? $default;
@@ -115,4 +116,4 @@ class ZMBuf
self::$atomics[$k] = new Atomic($v);
}
}
}
}