Exemple #1
0
 private static function getConfig()
 {
     $config = Config::getOrEmpty('cache');
     return Arr::overwrite(static::$defaultConfig, isset($config['memcache']) ? $config['memcache'] : []);
 }
Exemple #2
0
 private static function loadFromConfig()
 {
     static::$config = Arr::overwrite(static::$defaultConfig, Config::getOrEmpty('log'));
     static::$config['folder'] = rtrim(static::$config['folder'], '/\\ ');
     return static::$config;
 }