Symfony\Component\HttpFoundation\Request::getBaseUrl
Returns the root url from which this request is executed.
The base URL never ends with a /. This is similar to getBasePath(), except that it also includes the script filename (e.g. index.php) if one exists.
Signature
public function getBaseUrl()
Returns
- string
- The raw url (i.e. not urldecoded)