host = $uri->getHost(); $accumulator->port = $uri->getPort(); } /** * Detect the base URI for the request * * Looks at a variety of criteria in order to attempt to autodetect a base * URI, including rewrite URIs, proxy URIs, etc. * * @deprecated since 1.8.0; use Zend\Diactoros\marshalUriFromSapi() instead, * and pull the path from the Uri instance that function returns. * @param array $server * @return string */ public static function marshalRequestUri(array $server) { $uri = marshalUriFromSapi($server, []); return $uri->getPath(); } /** * Strip the query string from a path * * @deprecated since 1.8.0; no longer used internally. * @param mixed $path * @return string */ public static function stripQueryString($path) { return explode('?', $path, 2)[0]; } }