From 25e089eee90799ed0f6046dfd17521804b113f25 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 12 Feb 2016 14:01:11 +0000 Subject: [PATCH] Allow force-lazy-providers for any repo, still an experimental flag that should not be used though --- src/Composer/Repository/ComposerRepository.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index f3cf20e29..3e0d9c16b 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -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;