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