Пример #1
0
 public static function init()
 {
     $output = new CM_OutputStream_Null();
     $loader = CM_App::getInstance()->getProvisionLoader();
     $loader->unload($output);
     $loader->load($output);
     self::$_configBackup = serialize(CM_Config::get());
     $serviceManager = CM_Service_Manager::getInstance();
     self::$_serviceManagerBackup = clone $serviceManager;
     // Reset environment
     self::clearEnv();
     self::randomizeAutoincrement();
     self::timeInit();
 }