Returns the public URL for the specified path below the root of this application

@param string $requestedPath the path below the root of this application, e.g. `/users`
@return string the public URL for the requested path
322881
public function url($requestedPath) {
		$requestedPath = trim($requestedPath);
		$requestedPath = '/' . ltrim($requestedPath, '/');

		return $this->rootUrl . $requestedPath;
	}
295055
public function getRoutesPath($basePath = null)
    {
        $routes = $this->get('routes');
        if (empty($routes)) {
            // Fallback to default
            return $basePath . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'routes' . DIRECTORY_SEPARATOR . 'main.php';
        }

        return $basePath . DIRECTORY_SEPARATOR . $routes['base_dir'] . DIRECTORY_SEPARATOR . $routes['base_file'];
    }
124207
public function getUrl($path) {
        if (strpos($path, '://') !== false) {
            return $path;
        }
        $url = 'https://api.mch.weixin.qq.com/';
        if ($this->get('debug_mode') === true) {
            $url .= 'sandboxnew/';
        }
        return $url. trim($path, '/');
    }
830250
public function getAuthUrl($path)
    {
        return Url::factory($this->client->getConfig('base_url'))
            ->setPath($path)
            ->setQuery(array('oauth_token' => $this->token))
        ;
    }
1118500
public function getUrl($path, $public = true)
    {
        $path = $this->_relativepath($path, $public);

        return $this->_getUrl($path);
    }
1207388
public function url(string $path = null): string
    {
        return $path ? sv_url($path) : sv_url()->current();
    }
707597
public static function getRequestPath()
    {
        if (empty($_SERVER['REQUEST_URI'])) {
            return false;
        }

        $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

        return empty($path) ? $path : urldecode($path);
    }
860526
public function requestPath()
    {
        if($this->shopURL != null)
            $this->requestPath = 'https://' . $this->shopURL . $this->adminPath;

        return $this->requestPath;
    }
1196563
public function getUrl( $path )
    {
        if (!$this->has($path)) throw new FileNotFoundException($filePath.' not found');
        return ( $this->ssl ? 'https://' : 'http://' ) . ( $this->isCname ? ( $this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain ) : $this->bucket . '.' . $this->endPoint ) . '/' . ltrim($path, '/');
    }
275781
public function getUrl($path): string
    {
        \assert('is_string($path)');
        if (strpos($path, ':') === 0) {
            $key = substr($path, 0, strpos($path, '/') ?: \strlen($path));
            $path = $key === $path ? '' : (string)substr($path, \strlen($key));
        } else {
            $key = ':dist';
        }
        if (!isset($this->map[$key])) {
            throw new \InvalidArgumentException(sprintf('No path "%s" for subpackage "%s".', $path, $key));
        }
        return parent::getUrl(substr($key, 1) . $path);
    }
1325168
public function adminUrl($targetPath = null)
    {
        if (!isset($this->adminUrl)) {
            throw new RuntimeException(sprintf(
                'The Admin URI is not defined for [%s]',
                get_class($this)
            ));
        }

        if ($targetPath !== null) {
            return $this->createAbsoluteUrl($this->adminUrl, $targetPath);
        }

        return rtrim($this->adminUrl, '/').'/';
    }
693122
public function getUrl($path)
    {
        $uri = rtrim($this->storageApiUri, '/');
        $path = $this->applyPathPrefix($path);

        // Only prepend bucket name if no custom storage uri specified
        // Default: "https://storage.googleapis.com/{my_bucket}/{path_prefix}"
        // Custom: "https://example.com/{path_prefix}"
        if ($this->getStorageApiUri() === self::STORAGE_API_URI_DEFAULT) {
            $path = $this->bucket->name() . '/' . $path;
        }

        return $uri . '/' . $path;
    }
457358
public function getRootApplicationDirectoryPathByFilePath(string $filePath): string
    {
        if ($this->isApplicationRootDefined()) {
            return ${static::CONST_NAME_APPLICATION_ROOT_DIR};
        }

        $vendorPosition = strpos($filePath, 'vendor');

        if ($vendorPosition !== false) {
            return substr($filePath, 0, $vendorPosition);
        }

        $sourcePosition = strpos($filePath, 'src');

        return substr($filePath, 0, $sourcePosition);
    }
393509
protected function publicPath($subPath = '')
    {
        if (function_exists('public_path')) {
            return public_path($subPath);
        }

        $basePath = $this->app->__invoke('app')->path()->append('public');

        return $subPath ? "$basePath/$subPath" : $basePath;
    }
408241
public static function getUtilUrl($path)
    {
        global $CFG;
        if ( isset($CFG->utilroot) ) {
            return $CFG->utilroot.$path;
        }

        // From wwwroot
        $path = str_replace('.php','',$path);
        $retval = $CFG->wwwroot . '/util' . $path;
        return $retval;

        // The old way from "vendor"
        // return $CFG->vendorroot.$path;
    }
894112
protected function parseRequestPath($requestPath)
    {
        $request = $this->splitRequestPath($requestPath);
        if (!empty($this->config)) {
            foreach ($this->config as $template => $internalPath) {
                if (false !== $params = $this->matchPathTemplate($template, $request)) {

                    if ($internalPath instanceof \Closure) {
                        $route = $internalPath($request, $params);
                        if (false === $route) {
                            continue;
                        }
                        if (!($route instanceof Route)) {
                            $route = new Route($route);
                        }
                        if (empty($route->action)) {
                            $route->action = self::DEFAULT_ACTION;
                        }
                        if (empty($route->params)) {
                            $route->params = new Route([]);
                        }
                        if (empty($route->format)) {
                            $route->format = $request->extension ?: $this->allowedExtensions[0];
                        }
                        return $route;
                    }

                    $internalPath = preg_replace_callback(
                        '~\<(\d+)\>~',
                        function ($m) use ($params) {
                            return $params[$m[1]];
                        },
                        $internalPath
                    );
                    $route = new Route($internalPath);
                    $route->format = $request->extension ?: $this->allowedExtensions[0];
                    return $route;
                }
            }
        }
        return $this->guessInternalPath($request);
    }
1023979
protected function getCurrentPathRelativeToBase($path = null)
    {
        if (!$path) {
            // using $_SERVER instead of using Request method
            // to get original request path instead of any forwarded request
            $path = $_SERVER['REQUEST_URI'];
        }
        $base_path = $this->app['request']->getBasePath();
        return substr(strtok($path, '?'), strlen($base_path));
    }