function NoProxyPattern::makeData
Creates a rule data object
2 calls to NoProxyPattern::makeData()
- NoProxyPattern::getRule in vendor/
composer/ composer/ src/ Composer/ Util/ NoProxyPattern.php - Finds or creates rule data for a hostname
- NoProxyPattern::getUrlData in vendor/
composer/ composer/ src/ Composer/ Util/ NoProxyPattern.php - Returns false is the url cannot be parsed, otherwise a data object
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ NoProxyPattern.php, line 326
Class
- NoProxyPattern
- Tests URLs against NO_PROXY patterns
Namespace
Composer\UtilCode
private function makeData(string $host, int $port, ?stdClass $ipdata) : stdClass {
return (object) [
'host' => $host,
'name' => '.' . ltrim($host, '.'),
'port' => $port,
'ipdata' => $ipdata,
];
}