*/ $cachedConfigs = Cache::read('global_configs'); if (!empty($cachedConfigs)) { foreach ($cachedConfigs as $k => $v) { Configure::write($k, $v); } } unset($cacheEngine, $cachedConfigs); InfinitasPlugin::loadCore(); EventCore::trigger(new StdClass(), 'requireLibs'); /** * @todo cake2.0 * Cache::write('global_configs', Configure::getInstance()); */ configureCache(EventCore::trigger(new StdClass(), 'setupCache')); InfinitasPlugin::loadInstalled(); /** * Make sure the json defines are loaded. */ if (!defined('JSON_ERROR_NONE')) { define('JSON_ERROR_NONE', 0); } if (!defined('JSON_ERROR_DEPTH')) { define('JSON_ERROR_DEPTH', 1); } if (!defined('JSON_ERROR_CTRL_CHAR')) { define('JSON_ERROR_CTRL_CHAR', 3); } if (!defined('JSON_ERROR_SYNTAX')) { define('JSON_ERROR_SYNTAX', 4); }