private function initUri($uri)
	{
		if ($uri !== null) {
			return $uri;
		}

		$scheme = isset($this->getServerParams()['HTTPS']) ? 'https://' : 'http://';
		$host = isset($this->getServerParams()['HTTP_HOST']) ? $scheme . $this->getServerParams()['HTTP_HOST'] : '';
		$path = isset($this->getServerParams()['REQUEST_URI']) ? $this->getServerParams()['REQUEST_URI'] : '';

		return new URI($host . $path);
	}
private function initUri($uri)
	{
		if ($uri !== null) {
			return $uri;
		}

		$scheme = isset($this->getServerParams()['HTTPS']) ? 'https://' : 'http://';
		$host = isset($this->getServerParams()['HTTP_HOST']) ? $scheme . $this->getServerParams()['HTTP_HOST'] : '';
		$path = isset($this->getServerParams()['REQUEST_URI']) ? $this->getServerParams()['REQUEST_URI'] : '';

		return new URI($host . $path);
	}
private function initUri ( $ uri ) { if ( $ uri !== null ) { return $ uri ; } $ scheme = isset ( $ this -> getServerParams ( ) [ 'HTTPS' ] ) ? 'https://' : 'http://' ; $ host = isset ( $ this -> getServerParams ( ) [ 'HTTP_HOST' ] ) ? $ scheme . $ this -> getServerParams ( ) [ 'HTTP_HOST' ] : '' ; $ path = isset ( $ this -> getServerParams ( ) [ 'REQUEST_URI' ] ) ? $ this -> getServerParams ( ) [ 'REQUEST_URI' ] : '' ; return new URI ( $ host . $ path ) ; }
Initialize the URI.

@param UriInterface|null $uri
@return UriInterface the URI.
Initialize the URI .