src/Leevel/Router/Match/Annotation.php
protected function matcheGroups(string $pathInfo, array $routers): array
    {
        $matchGroup = false;

        foreach ($this->router->getGroups() as $group) {
            if (0 === strpos($pathInfo, $group)) {
                $routers = $routers[$group];
                $matchGroup = true;

                break;
            }
        }

        if (false === $matchGroup) {
            $routers = $routers['_'] ?? [];
        }

        return $routers;
    }
protected function matcheGroups(string $pathInfo, array $routers): array
    {
        $matchGroup = false;

        foreach ($this->router->getGroups() as $group) {
            if (0 === strpos($pathInfo, $group)) {
                $routers = $routers[$group];
                $matchGroup = true;

                break;
            }
        }

        if (false === $matchGroup) {
            $routers = $routers['_'] ?? [];
        }

        return $routers;
    }
匹配路由分组.

@param string $pathInfo
@param array  $routers

@return array