mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 02:01:40 +09:00
Load system configuration before Context::init()
This commit is contained in:
parent
2cbecff729
commit
89db7c7c7c
2 changed files with 7 additions and 5 deletions
|
|
@ -460,7 +460,7 @@ class Context
|
|||
// Load new configuration format.
|
||||
if ($config === null)
|
||||
{
|
||||
$config = Rhymix\Framework\Config::init();
|
||||
$config = Rhymix\Framework\Config::getAll();
|
||||
}
|
||||
if (!count($config))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -191,7 +191,9 @@ spl_autoload_register(function($class_name)
|
|||
/**
|
||||
* Also include the Composer autoloader.
|
||||
*/
|
||||
if (file_exists(RX_BASEDIR . 'vendor/autoload.php'))
|
||||
{
|
||||
require_once RX_BASEDIR . 'vendor/autoload.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Load system configuration.
|
||||
*/
|
||||
Rhymix\Framework\Config::init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue