Handle multiple urls in package transport options
parent
c811eded7d
commit
2a7a954f62
|
@ -220,9 +220,11 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository
|
||||||
|
|
||||||
protected function configurePackageTransportOptions(PackageInterface $package)
|
protected function configurePackageTransportOptions(PackageInterface $package)
|
||||||
{
|
{
|
||||||
if (strpos($package->getDistUrl(), $this->baseUrl) === 0) {
|
foreach ($package->getDistUrls() as $url) {
|
||||||
$package->setTransportOptions($this->options);
|
if (strpos($url, $this->baseUrl) === 0) {
|
||||||
return;
|
$package->setTransportOptions($this->options);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue