function Request::getSchemeAndHttpHost
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.
2 calls to Request::getSchemeAndHttpHost()
- Request::getUri in vendor/
symfony/ http-foundation/ Request.php - Generates a normalized URI (URL) for the Request.
- Request::getUriForPath in vendor/
symfony/ http-foundation/ Request.php - Generates a normalized URI for the given path.
File
-
vendor/
symfony/ http-foundation/ Request.php, line 958
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
public function getSchemeAndHttpHost() : string {
return $this->getScheme() . '://' . $this->getHttpHost();
}