SiteURIFactory.php
system/HTTP/SiteURIFactory.php
1 class
9 methods
class SiteURIFactory
Creates SiteURI using superglobals. This class also updates superglobal $_SERVER and $_GET.
__construct
(private readonly App $appConfig, private readonly Superglobals $superglobals)
createFromGlobals
()
createFromString
(string $uri)
detectRoutePath
(string $protocol = '')
parseRequestURI
()
parseQueryString
()
createURIFromRoutePath
(string $routePath)
getHost
()
getValidHost
(string $host)