CodeExplorer setRoutePath example
$uri =
$this->baseURL .
$indexPageRoutePath;
// applyParts
$parts =
parse_url($uri);
if ($parts === false
) { throw HTTPException::
forUnableToParseURI($uri);
} $parts['query'
] =
$query;
$parts['fragment'
] =
$fragment;
$this->
applyParts($parts);
$this->
setRoutePath($routePath);
} private function parseRelativePath(string
$relativePath): array
{ $parts =
parse_url('http://dummy/' .
$relativePath);
if ($parts === false
) { throw HTTPException::
forUnableToParseURI($relativePath);
} $routePath =
$relativePath === '/' ? '/' :
ltrim($parts['path'
], '/'
);