string
$relativePath = '',
?string
$host = null,
?string
$scheme = null
) { $this->indexPage =
$configApp->indexPage;
$this->baseURL =
$this->
determineBaseURL($configApp,
$host,
$scheme);
$this->
setBasePath();
// Fix routePath, query, fragment
[$routePath,
$query,
$fragment] =
$this->
parseRelativePath($relativePath);
// Fix indexPage and routePath
$indexPageRoutePath =
$this->
getIndexPageRoutePath($routePath);
// Fix the current URI
$uri =
$this->baseURL .
$indexPageRoutePath;
// applyParts
$parts =
parse_url($uri);
if ($parts === false
) { throw HTTPException::
forUnableToParseURI($uri);
}