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

@param string $name
@param callable $callback
注册中间件