function RequestContext::setBaseUrl
Sets the base URL.
Return value
$this
2 calls to RequestContext::setBaseUrl()
- RequestContext::fromRequest in vendor/
symfony/ routing/ RequestContext.php - Updates the RequestContext information based on a HttpFoundation Request.
- RequestContext::__construct in vendor/
symfony/ routing/ RequestContext.php
File
-
vendor/
symfony/ routing/ RequestContext.php, line 104
Class
- RequestContext
- Holds information about the current request.
Namespace
Symfony\Component\RoutingCode
public function setBaseUrl(string $baseUrl) : static {
$this->baseUrl = rtrim($baseUrl, '/');
return $this;
}