Jelajahi Sumber

load IO configuration

Ben Davies 11 tahun lalu
induk
melakukan
91d9e91c0a
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      src/Composer/Factory.php

+ 3 - 1
src/Composer/Factory.php

@@ -342,7 +342,9 @@ class Factory
     public function createArchiveManager(Config $config, Downloader\DownloadManager $dm = null)
     {
         if (null === $dm) {
-            $dm = $this->createDownloadManager(new IO\NullIO(), $config);
+            $io = new IO\NullIO();
+            $io->loadConfiguration($config);
+            $dm = $this->createDownloadManager($io, $config);
         }
 
         $am = new Archiver\ArchiveManager($dm);