Move *ConfigValue functions to App

This commit is contained in:
Hypolite Petovan 2018-03-06 20:04:04 -05:00
parent 047f949967
commit 87f2d18554
6 changed files with 150 additions and 172 deletions

View file

@ -29,9 +29,7 @@ class Config extends BaseObject
public static function init()
{
$a = self::getApp();
if (isset($a->config['system']['config_adapter']) && $a->config['system']['config_adapter'] == 'preload') {
if (self::getApp()->getConfigValue('system', 'config_adapter') == 'preload') {
self::$adapter = new Config\PreloadConfigAdapter();
} else {
self::$adapter = new Config\JITConfigAdapter();