1
0
Fork 0

Handle multiple urls in package transport options

pull/2993/merge
Jordi Boggiano 2014-05-07 19:12:58 +02:00
parent c811eded7d
commit 2a7a954f62
1 changed files with 5 additions and 3 deletions

View File

@ -220,9 +220,11 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository
protected function configurePackageTransportOptions(PackageInterface $package)
{
if (strpos($package->getDistUrl(), $this->baseUrl) === 0) {
$package->setTransportOptions($this->options);
return;
foreach ($package->getDistUrls() as $url) {
if (strpos($url, $this->baseUrl) === 0) {
$package->setTransportOptions($this->options);
return;
}
}
}