private function Client::extractHost in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::extractHost()
2 calls to Client::extractHost()
- Client::request in vendor/
symfony/ browser-kit/ Client.php - Calls a URI.
- Client::updateServerFromUri in vendor/
symfony/ browser-kit/ Client.php
File
- vendor/
symfony/ browser-kit/ Client.php, line 568
Class
- Client
- Client simulates a browser.
Namespace
Symfony\Component\BrowserKitCode
private function extractHost($uri) {
$host = parse_url($uri, PHP_URL_HOST);
if ($port = parse_url($uri, PHP_URL_PORT)) {
return $host . ':' . $port;
}
return $host;
}