/** * init the class * * @since 2.4.0 * * @param string $file file with config */ public static function init($file = 'config.php') { $configArray = (include $file); if (is_array($configArray)) { self::$_configArray = $configArray; } }
/** * clear the config * * @since 3.0.0 */ public function clear() { self::$_configArray = []; }