瀏覽代碼

Merge pull request #3825 from fonsecas72/ppp

Use get home from Config instead of factory
Jordi Boggiano 10 年之前
父節點
當前提交
9f9cff558e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Factory.php

+ 1 - 1
src/Composer/Factory.php

@@ -113,7 +113,7 @@ class Factory
         $config->merge(array('config' => array('home' => $home, 'cache-dir' => $cacheDir)));
 
         // load global config
-        $file = new JsonFile($home.'/config.json');
+        $file = new JsonFile($config->get('home').'/config.json');
         if ($file->exists()) {
             if ($io && $io->isDebug()) {
                 $io->writeError('Loading config file ' . $file->getPath());