src/Leevel/Router/Match/PathInfo.php
protected function matchMain(): array
    {
        // 匹配 PathInfo
        $path = $this->normalizePath($this->matchePathInfo());

        // 应用
        list($result, $path) = $this->matcheApp($path);

        // Middleware
        $result[IRouter::MIDDLEWARES] = $this->middlewares;

        if (!$path) {
            return $result;
        }

        // Mvc
        $result = array_merge($result, $this->matcheMvc($path));

        return $result;
    }
protected function matchMain(): array
    {
        // 匹配 PathInfo
        $path = $this->normalizePath($this->matchePathInfo());

        // 应用
        list($result, $path) = $this->matcheApp($path);

        // Middleware
        $result[IRouter::MIDDLEWARES] = $this->middlewares;

        if (!$path) {
            return $result;
        }

        // Mvc
        $result = array_merge($result, $this->matcheMvc($path));

        return $result;
    }
主匹配.

@return array