private function Uri::applyParts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/src/Uri.php \GuzzleHttp\Psr7\Uri::applyParts()
Apply parse_url parts to a URI.
Parameters
$parts Array of parse_url parts to apply.:
1 call to Uri::applyParts()
- Uri::__construct in vendor/
guzzlehttp/ psr7/ src/ Uri.php
File
- vendor/
guzzlehttp/ psr7/ src/ Uri.php, line 441
Class
- Uri
- Basic PSR-7 URI implementation.
Namespace
GuzzleHttp\Psr7Code
private function applyParts(array $parts) {
$this->scheme = isset($parts['scheme']) ? $this
->filterScheme($parts['scheme']) : '';
$this->userInfo = isset($parts['user']) ? $parts['user'] : '';
$this->host = isset($parts['host']) ? $parts['host'] : '';
$this->port = !empty($parts['port']) ? $this
->filterPort($this->scheme, $this->host, $parts['port']) : null;
$this->path = isset($parts['path']) ? $this
->filterPath($parts['path']) : '';
$this->query = isset($parts['query']) ? $this
->filterQueryAndFragment($parts['query']) : '';
$this->fragment = isset($parts['fragment']) ? $this
->filterQueryAndFragment($parts['fragment']) : '';
if (isset($parts['pass'])) {
$this->userInfo .= ':' . $parts['pass'];
}
}