public static function getInstance()
 {
     if (null === self::$loc) {
         self::$loc = new self();
     }
     return self::$loc;
 }
Exemplo n.º 2
0
 /**
  * @return ZendCacheDriver
  */
 protected static function getCache()
 {
     if (is_null(self::$cache)) {
         self::$cache = new ZendCacheDriver('cache/expensive');
     }
     return self::$cache;
 }