This method is only here as a legacy decorator, use url::to.

@return \League\URL\URLInterface

@deprecated
483737
public static function route($data)
    {
        $arguments = array_slice(func_get_args(), 1);
        if (!$arguments) {
            $arguments = array();
        }
        $route = static::getFacadeApplication()->make(\Router::class)->route($data);
        array_unshift($arguments, $route);

        return static::getFacadeRoot()->resolve($arguments);
    }
824021
public function getPayPalCancelURL()
    {
        $url = $this->formatUrl($this->_getRedirectUrl());
        $replacedURL = str_replace('showECSPopup=1', 'showECSPopup=0', $url);

        return urlencode($replacedURL);
    }
800524
public function getUrl()
    {
        if ($this->_url instanceof Closure) {
            return call_user_func($this->_url, $this);
        }

        return $this->_url ?: Yii::$app->request->referrer;
    }
229449
public function getUrl()
	{
		throw new \Exception('Dont use me bro.');

		$url = null;

		switch ($this->getResource()) {

			case self::RESOURCE_PAGE:
				$pageData = $this->getPage();

				if ( ! is_null($pageData)) {
					$url = $this->getPageFullPath($pageData);
				}
				break;

			case self::RESOURCE_FILE:
				$file = $this->getFile();

				if ($file instanceof File) {
					$fs = ObjectRepository::getFileStorage($this);
					$url = $fs->getWebPath($file);
				}

				break;

			case self::RESOURCE_LINK:
			case self::RESOURCE_EMAIL:
				$url = $this->getHref();
				break;

//			case self::RESOURCE_RELATIVE_PAGE:
//				$page = $this->getPage();
//
//				if (is_null($page)) {
//					$this->log()->warn("No page ID set or found for relative link #", $this->getId());
//					throw new ResourceNotFoundException("Invalid redirect");
//				}
//
//				$pageChildren = $page->getPublicChildren();
//
//				if ( ! $pageChildren->isEmpty()) {
//					$type = $this->getHref();
//					$relativeChild = null;
//
//					if ($type == self::RELATIVE_FIRST) {
//						$relativeChild = $pageChildren->first();
//					} else {
//						$relativeChild = $pageChildren->last();
//					}
//
//					$url = $this->getPageFullPath($relativeChild);
//				} else {
//					//throw new ResourceNotFoundException('Valid relative redirect child was not found');
//					return null;
//				}
//				break;

			default:
				$this->log()->warn("Unrecognized resource for supra html markup link tag, data: $this");
		}

		return $url;
	}
267287
protected function getUrl()
    {

        if (!($this->secure && $this->sandbox)) {
            return static::HTTP_URL;
        } else if (!$this->secure && $this->sandbox) {
            return static::SANDBOX_HTTP_URL;
        } else if ($this->secure && $this->sandbox) {
            return static::SANDBOX_HTTPS_URL;
        } else {
            return static::HTTPS_URL;
        }
    }
166313
public function getURL()
    {
        $url = $this->_internal_request->get_normalized_http_url();

        if ($this->getMethod() == AnHttpRequest::GET) {
            $url = $this->_internal_request->to_url();
        }

        return $url;
    }
427336
protected function _getUrlToRedirectBackTo()
    {
        $urlToRedirectBackTo = $this->request->getRequestTarget();
        if (!$this->request->is('get')) {
            $urlToRedirectBackTo = $this->request->referer(true);
        }

        return $urlToRedirectBackTo;
    }
946521
public function getUrl(): \Psr\Http\Message\UriInterface
    {
        if (!$this->url) {
            return new Uri();
        }

        return $this->url;
    }
685812
private function getUrlPlugin()
    {
        if(null === $this->url) {
            $this->url = $this->serviceLocator->get('ControllerPluginManager')->get('url');
        }
    
        return $this->url;
    }
916859
public function buildUrl()
    {

        if (isset($this->otherOptions['urlProcessRegEx'])
            && !empty($this->otherOptions['urlProcessRegEx'])
        ) {
            unset($this->otherOptions['urlProcessPattern']);
        }

        if (isset($this->otherOptions['urlCrawlRegEx'])
            && !empty($this->otherOptions['urlCrawlRegEx'])
        ) {
            unset($this->otherOptions['urlCrawlPattern']);
        }


        // Add token
        $url = 'token=' . $this->diffbot->getToken();

        if ($this->getName()) {
            // Add name
            $url .= '&name=' . $this->getName();

            // Add seeds
            if (!empty($this->seeds)) {
                $url .= '&seeds=' . implode('%20', array_map(function ($item) {
                        return urlencode($item);
                    }, $this->seeds));
            }

            // Add other options
            if (!empty($this->otherOptions)) {
                foreach ($this->otherOptions as $option => $value) {
                    $url .= '&' . $option . '=' . $value;
                }
            }

            // Add API link
            $url .= '&apiUrl=' . $this->getApiString();
        }

        return $url;
    }
159609
protected function currentUrlHost()
    {
        if (isset(static::$static[__FUNCTION__])) {
            return static::$static[__FUNCTION__];
        }
        if (!empty($this->options['current_url_host'])) {
            return static::$static[__FUNCTION__] = $this->nUrlHost($this->options['current_url_host']);
        }
        if (empty($_SERVER['HTTP_HOST'])) {
            throw new \Exception('Missing required `$_SERVER[\'HTTP_HOST\']`.');
        }
        return static::$static[__FUNCTION__] = $this->nUrlHost($_SERVER['HTTP_HOST']);
    }
352767
public function getUrlRacine()
    {
        $protocol = empty($_SERVER["HTTPS"])?"http":"https";
        if (isset($_SERVER["SERVER_NAME"])) {
            $dirname=dirname($_SERVER["PHP_SELF"]);
            if (basename($dirname)=="script") {
                $dirname = dirname($dirname);
            }
        } else {
            $dirname="";
        }
        $url =$protocol."://".$this->getNomServeur().
        $dirname;
        if ($dirname!="/") {
            $url.="/";
        }
        return $url;
    }
1142494
public function getUrl()
	{
		$commentable = $this->commentable;

		$url = false;
		if (method_exists($commentable, 'getUrl'))
		{
			$url = $commentable->getUrl();
		}

		return \URL::to($url.'#C'.$this->id);
	}
502199
protected function getUriFormater() : UriFormaterInterface
    {
        if ($this->formater === null)
        {
            $this->formater = new UriFormater();
        }
        
        return $this->formater;
    }
236268
private function queueUrl()
    {
        return static function (callable $handler) {
            return function (
                CommandInterface $c,
                RequestInterface $r = null
            ) use ($handler) {
                if ($c->hasParam('QueueUrl')) {
                    $uri = Uri::resolve($r->getUri(), $c['QueueUrl']);
                    $r = $r->withUri($uri);
                }
                return $handler($c, $r);
            };
        };
    }
547614
public function getUrl()
    {
        if (is_null($this->_url)) {
            $this->_resourceTypeConfig = $this->getResourceTypeConfig();
            if (is_null($this->_resourceTypeConfig)) {
                $connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector");
                $oErrorHandler =& $connector->getErrorHandler();
                $oErrorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_TYPE);
                $this->_url = "";
            }
            else {
                $this->_url = $this->_resourceTypeConfig->getUrl() . ltrim($this->getClientPath(), "/");
            }
        }

        return $this->_url;
    }
1097978
public function getURL()
    {
        if (!isset($this->_url)) {
            $this->_url = 'option='.$this->component.'&view='.$this->_mixer->getIdentifier()->name;

            if ($this->_mixer->id) {
                $this->_url .= '&id='.$this->_mixer->id;
            }
        }

        return $this->_url;
    }