src/Leevel/Router/Match/Match.php
protected function matchePathInfo(): string
    {
        $pathInfo = $this->getPathInfo();

        // 匹配基础路径
        $middlewares = $this->matcheBasePaths($pathInfo);

        // 匹配分组路径
        list($pathInfo, $this->middlewares) = $this->matcheGroupPaths($pathInfo, $middlewares);

        return $pathInfo;
    }
protected function matchePathInfo(): string
    {
        $pathInfo = $this->getPathInfo();

        // 匹配基础路径
        $middlewares = $this->matcheBasePaths($pathInfo);

        // 匹配分组路径
        list($pathInfo, $this->middlewares) = $this->matcheGroupPaths($pathInfo, $middlewares);

        return $pathInfo;
    }
匹配 PathInfo.

@return string