فهرست منبع

Merge pull request #7937 from aboks/defaultrepos-auth

Fix defaultRepos fallback does not use auth config
Jordi Boggiano 6 سال پیش
والد
کامیت
27bdda1fd3
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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');