Use get home from Config instead of factory
parent
b80038804f
commit
c41a187b62
|
@ -113,7 +113,7 @@ class Factory
|
||||||
$config->merge(array('config' => array('home' => $home, 'cache-dir' => $cacheDir)));
|
$config->merge(array('config' => array('home' => $home, 'cache-dir' => $cacheDir)));
|
||||||
|
|
||||||
// load global config
|
// load global config
|
||||||
$file = new JsonFile($home.'/config.json');
|
$file = new JsonFile($config->get('home').'/config.json');
|
||||||
if ($file->exists()) {
|
if ($file->exists()) {
|
||||||
if ($io && $io->isDebug()) {
|
if ($io && $io->isDebug()) {
|
||||||
$io->writeError('Loading config file ' . $file->getPath());
|
$io->writeError('Loading config file ' . $file->getPath());
|
||||||
|
|
Loading…
Reference in New Issue