function Request::getBaseUrlReal
Returns the real base URL received by the webserver from which this request is executed. The URL does not include trusted reverse proxy prefix.
Return value
string The raw URL (i.e. not urldecoded)
2 calls to Request::getBaseUrlReal()
- Request::getBaseUrl in vendor/
symfony/ http-foundation/ Request.php - Returns the root URL from which this request is executed.
- Request::preparePathInfo in vendor/
symfony/ http-foundation/ Request.php - Prepares the path info.
File
-
vendor/
symfony/ http-foundation/ Request.php, line 846
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
private function getBaseUrlReal() : string {
return $this->baseUrl ??= $this->prepareBaseUrl();
}