Exemplo n.º 1
0
 /**
  * Merge user config and default config
  * $direct is for knowing whether the function is called by self::construct()
  */
 public static function config($config = null, $direct = true)
 {
     if ($config != null) {
         self::$config = $config;
     }
     self::$config = array_replace_recursive(self::$default_config, self::$config);
     if ($direct == true) {
         self::construct();
     }
 }
Exemplo n.º 2
0
 /**
  * Merge user config and default config
  */
 public static function config()
 {
     self::$config = array_replace_recursive(self::$default_config, self::$config);
 }