public function detectRoutePath(string
$protocol = ''
): string
{ if ($protocol === ''
) { $protocol =
$this->appConfig->uriProtocol;
} switch ($protocol) { case 'REQUEST_URI':
$routePath =
$this->
parseRequestURI();
break;
case 'QUERY_STRING':
$routePath =
$this->
parseQueryString();
break;
case 'PATH_INFO':
default:
$routePath =
$this->superglobals->
server($protocol) ??
$this->
parseRequestURI();
break;
}