瀏覽代碼

Add default config source to Config class

Zachary Flower 7 年之前
父節點
當前提交
9c109dfea1
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/Composer/Config.php

+ 11 - 0
src/Composer/Config.php

@@ -84,6 +84,7 @@ class Config
     private $configSource;
     /** @var ConfigSourceInterface */
     private $authConfigSource;
+    private $defaultsConfigSource;
     private $useEnvironment;
     private $warnedHosts = array();
 
@@ -120,6 +121,16 @@ class Config
         return $this->authConfigSource;
     }
 
+    public function setDefaultsConfigSource(ConfigSourceInterface $source)
+    {
+        $this->defaultsConfigSource = $source;
+    }
+
+    public function getDefaultsConfigSource()
+    {
+        return $this->defaultsConfigSource;
+    }
+
     /**
      * Merges new config values with the existing ones (overriding)
      *