src/Leevel/Router/OpenApiRouter.php
protected function parseRouterMiddlewares(array $router): array
    {
        if (!empty($router['middlewares'])) {
            $router['middlewares'] = $this->middlewareParser->handle(
                normalize($router['middlewares'])
            );
        }

        return $router;
    }
protected function parseRouterMiddlewares(array $router): array
    {
        if (!empty($router['middlewares'])) {
            $router['middlewares'] = $this->middlewareParser->handle(
                normalize($router['middlewares'])
            );
        }

        return $router;
    }
解析中间件.

@param array $router

@return array