1
0
Fork 0

Allow force-lazy-providers for any repo, still an experimental flag that should not be used though

pull/4908/merge
Jordi Boggiano 2016-02-12 14:01:11 +00:00
parent 0117571caa
commit 25e089eee9
1 changed files with 3 additions and 0 deletions

View File

@ -511,6 +511,9 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
$this->baseUrl = 'https://packagist.org';
$this->lazyProvidersUrl = $this->canonicalizeUrl('https://packagist.org/p/%package%.json');
$this->providersUrl = null;
} elseif (!empty($this->repoConfig['force-lazy-providers'])) {
$this->lazyProvidersUrl = $this->canonicalizeUrl('/p/%package%.json');
$this->providersUrl = null;
}
return $this->rootData = $data;