Load system configuration before Context::init()

This commit is contained in:
Kijin Sung 2016-02-04 20:41:53 +09:00
parent 2cbecff729
commit 89db7c7c7c
2 changed files with 7 additions and 5 deletions

View file

@ -460,7 +460,7 @@ class Context
// Load new configuration format. // Load new configuration format.
if ($config === null) if ($config === null)
{ {
$config = Rhymix\Framework\Config::init(); $config = Rhymix\Framework\Config::getAll();
} }
if (!count($config)) if (!count($config))
{ {

View file

@ -191,7 +191,9 @@ spl_autoload_register(function($class_name)
/** /**
* Also include the Composer autoloader. * Also include the Composer autoloader.
*/ */
if (file_exists(RX_BASEDIR . 'vendor/autoload.php')) require_once RX_BASEDIR . 'vendor/autoload.php';
{
require_once RX_BASEDIR . 'vendor/autoload.php'; /**
} * Load system configuration.
*/
Rhymix\Framework\Config::init();