Beispiel #1
0
 /**
  * @return Cache
  */
 public static function getInstance()
 {
     if (!self::$instance) {
         $caching_system = _PS_CACHING_SYSTEM_;
         self::$instance = new $caching_system();
     }
     return self::$instance;
 }
Beispiel #2
0
 /**
  * Unit testing purpose only
  */
 public static function deleteTestingInstance()
 {
     self::$instance = null;
 }