Эх сурвалжийг харах

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

Jordi Boggiano 9 жил өмнө
parent
commit
25e089eee9

+ 3 - 0
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;