public static function clearEnv() { self::clearDb(); self::clearCache(); self::timeReset(); self::clearFilesystem(); CM_Service_Manager::getInstance()->resetServiceInstances(); CM_Config::set(unserialize(self::$_configBackup)); }
public function generateInternalConfig() { if (isset(CM_Config::get()->CM_Class_Abstract->typesMaxValue)) { return; } $generator = new CM_Config_Generator(); $config = new CM_Config_Node(); $config->extendWithConfig($generator->getConfigClassTypes()); $config->extendWithConfig($generator->getConfigActionVerbs()); $config->extendWithConfig(CM_Config::get()); CM_Config::set($config->export()); }