Explorar o código

Merge pull request #7937 from aboks/defaultrepos-auth

Fix defaultRepos fallback does not use auth config
Jordi Boggiano %!s(int64=6) %!d(string=hai) anos
pai
achega
27bdda1fd3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/Composer/Repository/RepositoryFactory.php

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

@@ -94,6 +94,9 @@ class RepositoryFactory
         if (!$config) {
             $config = Factory::createConfig($io);
         }
+        if ($io) {
+            $io->loadConfiguration($config);
+        }
         if (!$rm) {
             if (!$io) {
                 throw new \InvalidArgumentException('This function requires either an IOInterface or a RepositoryManager');