src/Leevel/Router/Match/Match.php
protected function matcheGroupPaths(string $pathInfo, array $middlewares): array
    {
        foreach ($this->router->getGroupPaths() as $item => $option) {
            if (0 === strpos($pathInfo, $item)) {
                $pathInfo = substr($pathInfo, strlen($item));

                if (isset($option['middlewares'])) {
                    $middlewares = $this->mergeMiddlewares($middlewares, $option['middlewares']);
                }

                break;
            }
        }

        return [$pathInfo, $middlewares];
    }
protected function matcheGroupPaths(string $pathInfo, array $middlewares): array
    {
        foreach ($this->router->getGroupPaths() as $item => $option) {
            if (0 === strpos($pathInfo, $item)) {
                $pathInfo = substr($pathInfo, strlen($item));

                if (isset($option['middlewares'])) {
                    $middlewares = $this->mergeMiddlewares($middlewares, $option['middlewares']);
                }

                break;
            }
        }

        return [$pathInfo, $middlewares];
    }
匹配分组路径.

@param string $pathInfo
@param array  $middlewares

@return array