Browse Source

Merge pull request #7937 from aboks/defaultrepos-auth

Fix defaultRepos fallback does not use auth config
Jordi Boggiano 6 years ago
parent
commit
27bdda1fd3
1 changed files with 3 additions and 0 deletions
  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');