/** * Renew the cache prefix, save it, and notify all observers. */ function renewCachePrefix() { $this->prefix = Util::randomString(); $this->system->variableSet(XAUTOLOAD_VARNAME_CACHE_PREFIX, $this->prefix); foreach ($this->observers as $observer) { $observer->setCachePrefix($this->prefix); } }
/** * Renew the cache prefix, save it, and notify all observers. */ function renewCachePrefix() { $this->prefix = Util::randomString(); variable_set('xautoload_cache_prefix', $this->prefix); foreach ($this->observers as $observer) { $observer->setCachePrefix($this->prefix); } }
function __construct() { $this->instanceKey = Util::randomString(); self::$instances[$this->instanceKey] = $this; }
/** * Legacy: Plugins were called "Handler" before. * * @deprecated * * @param string $namespace * @param xautoload_FinderPlugin_Interface $plugin * * @return string * The key under which the plugin was registered. This can later be used to * unregister the plugin again. */ function namespaceHandler($namespace, $plugin) { $key = Util::randomString(); $this->finder->registerNamespaceDeep($namespace, $key, $plugin); return $key; }