src/Leevel/Router/Match/PathInfo.php
protected function matcheApp(array $path): array
    {
        $result = [];

        if ($path && $this->isFindApp($path[0])) {
            $result[IRouter::APP] = substr(array_shift($path), 1);
        }

        if ($restfulResult = $this->matcheRestful($path)) {
            return [array_merge($result, $restfulResult), []];
        }

        if (!$path) {
            $result[IRouter::CONTROLLER] = IRouter::DEFAULT_CONTROLLER;
        }

        return [$result, $path];
    }
protected function matcheApp(array $path): array
    {
        $result = [];

        if ($path && $this->isFindApp($path[0])) {
            $result[IRouter::APP] = substr(array_shift($path), 1);
        }

        if ($restfulResult = $this->matcheRestful($path)) {
            return [array_merge($result, $restfulResult), []];
        }

        if (!$path) {
            $result[IRouter::CONTROLLER] = IRouter::DEFAULT_CONTROLLER;
        }

        return [$result, $path];
    }
匹配路由应用.

@param array $path

@return array