prepareRequestUri example

return $this->getHost().':'.$port;
    }

    /** * Returns the requested URI (path and query string). * * @return string The raw URI (i.e. not URI decoded) */
    public function getRequestUri(): string
    {
        return $this->requestUri ??= $this->prepareRequestUri();
    }

    /** * Gets the scheme and HTTP host. * * If the URL was called with basic authentication, the user * and the password are not added to the generated string. */
    public function getSchemeAndHttpHost(): string
    {
        return $this->getScheme().'://'.$this->getHttpHost();
    }
return $this->getHost().':'.$port;
    }

    /** * Returns the requested URI (path and query string). * * @return string The raw URI (i.e. not URI decoded) */
    public function getRequestUri(): string
    {
        return $this->requestUri ??= $this->prepareRequestUri();
    }

    /** * Gets the scheme and HTTP host. * * If the URL was called with basic authentication, the user * and the password are not added to the generated string. */
    public function getSchemeAndHttpHost(): string
    {
        return $this->getScheme().'://'.$this->getHttpHost();
    }
if (!empty($query)) {
                parse_str($query$result);

                foreach ($result as $key => $value) {
                    $this->setQuery((string) $key$value);
                }
            }

            return $this;
        }

        $this->requestUri = $this->prepareRequestUri();

        return $this;
    }

    /** * {@inheritdoc} */
    public function setBaseUrl($baseUrl = null)
    {
        if (($baseUrl !== null) && !\is_string($baseUrl)) {
            return $this;
        }
Home | Imprint | This part of the site doesn't use cookies.