/** * Store the Acl in the cache * * @return void */ private static function _storeInCache($acl = NULL) { if (is_null($acl) && App_FlagFlippers_Manager::_checkIfExist()) { $acl = App_FlagFlippers_Manager::_getFromRegistry(); } if (empty($acl)) { throw new Exception('You must provide a valid Acl in order to store it'); } $cacheHandler = App_DI_Container::get('CacheManager')->getCache('default'); $cacheHandler->save($acl, App_FlagFlippers_Manager::$indexKey); }