code: static function register(string $name, callable $callback) {
          if (isset(self::$_middleware[$name]))
              Console::warning("Overwriting middleware callback \"$name\".");
          self::$_middleware[$name] = $callback;
      }
docs: 注册中间件
  
  @param string $name
  @param callable $callback