Browse Source

Merge pull request #7937 from aboks/defaultrepos-auth

Fix defaultRepos fallback does not use auth config
Jordi Boggiano 6 năm trước cách đây
mục cha
commit
27bdda1fd3
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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');