소스 검색

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');