return self::$instances[$id];
}
+ /**
+ * Destroy all singleton() instances
+ * @since 1.27
+ */
+ public static function destroySingletons() {
+ self::$instances = array();
+ }
+
/**
* Get a connection to a redis server. Based on code in RedisBagOStuff.php.
*