예제 #1
0
 /**
  * as long as we have no decent dependency injection whatever,
  * we make this a singleton.
  */
 public static function get()
 {
     if (!isset(self::$_instance)) {
         $c = __CLASS__;
         self::$_instance = new $c();
     }
     return self::$_instance;
 }