/** * @return LockManagerGroup */ public static function singleton() { if (self::$instance == null) { self::$instance = new self(); self::$instance->initFromGlobals(); } return self::$instance; }
/** * Destroy the singleton instance, so that a new one will be created next * time singleton() is called. */ public static function destroySingleton() { self::$instance = null; }