Vrací jednu Page s relalacemi (join) PageUrl a Lang
@param string $url
@return Page|NULL
763000
public function findOneByUrlJoinLangJoinUrl(string $url) : ?Page
    {
        $page = PageQuery::create()
            ->joinWithPageUrl()
            ->leftJoinWithSocial()
            ->leftJoinWithPrimary()
            ->usePageUrlQuery()
                ->joinWithLang()
                ->filterByUrl($url)->limit(1)
            ->endUse()
            ->findOne();

        return $page;
    }
313916
public function findBlogsByURL($url)
    {
        $blog = null;

        $blog = $this->model->where('url', $url)->where('is_published', 1)->where('published_at', '<=', Carbon::now(config('app.timezone'))->format('Y-m-d H:i:s'))->first();

        if (!$blog) {
            $blog = $this->translationRepo->findByUrl($url, 'Grafite\Cms\Models\Blog');
        }

        return $blog;
    }
195392
public function get($url)
    {
        if (isset($this->entries[$url])) {
            return $this->entries[$url];
        } else {
            return null;
        }
    }
988540
static public function rUrl($url)
    {
        $module = null;
        if (strpos($url, 'http') !== 0 && ($pos = strpos($url, ':')) !== false) {    // 1. "x:a/b" module or xUrl
            $module = trim(substr($url, 0, $pos), '/');
            $url   = trim(substr($url, $pos + 1), '/');
        }
        
        if (strpos($url, 'http') === 0) {
            $url = str_replace(static::url($module . ':'), '', $url);
        }
        
        return trim($url, '/');
    }
1276913
public function findByUrl($url) {
		$url = new \TYPO3\Flow\Http\Uri($url);

		if (strpos($url->getHost(), 'twitter.com') === FALSE) {
			return NULL;
		}

		list($username, $operation, $id) = explode('/', trim($url->getPath(), '/'));

		if ($operation !== 'status') {
			return NULL;
		}

		return $this->findOneById($id);
	}
1055877
public function decodeUrl($url)
    {
        //parsowanie url'a z zamianą hasha
        $parsedUrl = parse_url($url);
        //inicjalizacja pustych parametrów
        $params = [];
        //dekodowanie ścieżki
        if (isset($parsedUrl['path'])) {
            $parsedUrl['path'] = urldecode($parsedUrl['path']);
        }
        //parsowanie query string (GET)
        if (isset($parsedUrl['query'])) {
            //funkcja parse_str dekoduje przez urldecode
            parse_str($parsedUrl['query'], $params);
        }
        //domyślne parametry
        $params['controller'] = isset($params['controller']) ? $params['controller'] : 'index';
        $params['action'] = isset($params['action']) ? $params['action'] : 'index';
        //jeśli nieustawiony moduł, url nie jest analizowany
        if (isset($params['module'])) {
            return $params;
        }
        //filtrowanie URL
        $filteredUrl = html_entity_decode(
            trim((isset($parsedUrl['path']) ? $parsedUrl['path'] : ''), '/ '),
            ENT_HTML401 | ENT_HTML5 | ENT_QUOTES,
            'UTF-8'
        );
        //próba aplikacji rout
        foreach ($this->getRoutes() as $route) {
            /* @var $route \Mmi\Mvc\RouterConfigRoute */
            $result = (new RouterMatcher)->tryRouteForUrl($route, $filteredUrl);
            //dopasowano routę
            if ($result['matched']) {
                //łączenie parametrów
                $params = array_merge($params, $result['params']);
                break;
            }
        }
        //zwrot parametrów
        return $params;
    }
660341
public static function googleTranslator(Url $url)
    {
        if (($value = $url->getQueryParameter('u'))) {
            return Url::create($value);
        }

        return $url;
    }
520311
public function getDesiredUrl(?string $url = null)
  {
    if (isset($_GET['url'])) {
      $url = $_GET['url'] . (count($_GET) > 0 ? '?' : '');
      unset($_GET['url']);

      foreach ($_GET as $key => $value) {
        $url .= (ends_with($url, '?') ? '' : '&') . $key . '=' . $value;
      }
    }

    if ($url != null) return $url;
    return false;
  }
596524
private static function domain(string $url): ?string
    {
        $domain = parse_url($url, PHP_URL_HOST);

        if (null !== $domain) {
            return implode('.', array_slice(explode('.', $domain), -2));
        }

        return null;
    }
218361
public static function retrieveUri($url)
    {
        $uri = new Psr7Uri($url);
        return (string)(new Psr7Uri())
            ->withPath($uri->getPath())
            ->withQuery($uri->getQuery())
            ->withFragment($uri->getFragment());
    }
439392
public function val($url = null)
    {
        if($this->isNull($url)) {
            return $this->value;
        }

        $this->value = $url;
        $this->validateUrl();

        return $this;
    }
62254
public static function parseRoute($url)
    {
        $result = null;

        $parts = explode('/', trim($url, '/'));
        if (count($parts) === 1) {
            $parts[0] = $parts[0] === '' ? self::DEFAULT_CONTROLLER : $parts[0];
            $parts[1] = self::DEFAULT_ACTION;
        }

        $action                   = static::preparePart(array_pop($parts), true);
        $parts[count($parts) - 1] = static::preparePart($parts[count($parts) - 1]).'Controller';
        $controller               = '\\project\\controllers\\'.implode('\\',
                $parts);

        if ($action != '' && $controller != '') {
            $result = $controller.'::'.$action;
        }

        return $result;
    }
106624
public static function url($url) {
		if (
			is_array($url)
			|| (is_string($url) && (preg_match('@^' . implode('|', Common::$uriSchemes) . ':@i', $url) || preg_match('@^#@i', $url)))
		) {
			return $url;
		}

		// Reset current language that gets changed by `I18n.I18nRoute::parse()`.
		$reset = Configure::check('Config.language') && $lang = Configure::read('Config.language');
		$parsed = Router::parse($url);
		if ($reset) Configure::write('Config.language', $lang);

		if ($parsed === false) {
			return $url;
		}

		if (!empty($parsed['pass'])) {
			$parsed = array_merge($parsed, $parsed['pass']);
			unset($parsed['pass']);
		}

		if (!empty($parsed['named'])) {
			foreach ($parsed['named'] as $param => $val) {
				$parsed[$param] = $val;
			}
			unset($parsed['named']);
		}

		if (array_key_exists('lang', $parsed) && strpos($url, $parsed['lang']) !== 1) {
			unset($parsed['lang']);
		}

		return $parsed;
	}
957703
protected function getLocaleFromUrl(string $url)
    {
        $locale = trim(substr($url, 0, 3), '/');
        if (strlen($locale) > 2 || strlen($locale) < 2) {
            return false;
        }

        return $locale;
    }
80070
public function url($url = null)
    {
        if ($url === null) {
            return $this->_url;
        }
        $this->_url = $url;

        return $this;
    }
62700
public static function normalizeURL($url)
  {
    $url_parts = self::splitURL($url);
    
    if ($url_parts == null) return null;
    
    $url_normalized = self::buildURLFromParts($url_parts, true);
    return $url_normalized;
  }
1018485
public function getDocument($url)
    {
        $urlHash = $this->getCacheHash($url, self::SLOT_DOC);

        // Try to retrieve the document from the cache
        if (Cache::getAdapter()->hasItem($urlHash)) {
            return Cache::getAdapter()->getItem($urlHash)->get();
        }

        return null;
    }