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