/** * Retrieve the scheme specific part of the URI. * * If no specific part information is present, this method MUST return an empty * string. * * @return string The URI authority, in "[user-info@]host[:port]" format. */ protected function getSchemeSpecificPart() { $auth = $this->getAuthority(); if (!empty($auth)) { $auth = '//' . $auth; } return $auth . $this->formatPath($this->path->getUriComponent(), (bool) $auth) . $this->query->getUriComponent() . $this->fragment->getUriComponent(); }