From c41a187b62791b1f290c37ad0f86a159c00f5961 Mon Sep 17 00:00:00 2001 From: Hugo Fonseca Date: Sat, 7 Mar 2015 13:00:21 +0000 Subject: [PATCH] Use get home from Config instead of factory --- src/Composer/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index da0a9ef63..504ae8815 100644 --- a/src/Composer/Factory.php +++ b/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());