src/Leevel/Router/MiddlewareParser.php
protected function parseMiddleware(string $middleware): array
    {
        $params = '';

        if (false !== strpos($middleware, ':')) {
            list($middleware, $params) = explode(':', $middleware);
        }

        return [
            $middleware,
            $params,
        ];
    }
protected function parseMiddleware(string $middleware): array
    {
        $params = '';

        if (false !== strpos($middleware, ':')) {
            list($middleware, $params) = explode(':', $middleware);
        }

        return [
            $middleware,
            $params,
        ];
    }
分析中间件.

@param string $middleware

@return array