Browse Source

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

Jordi Boggiano 9 years ago
parent
commit
25e089eee9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Composer/Repository/ComposerRepository.php

+ 3 - 0
src/Composer/Repository/ComposerRepository.php

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