Beispiel #1
0
 /**
  * Sets Cache Manager object used by Dja.
  * Such an object is required to implement IDjaCacheManager interface.
  *
  * @static
  * @param IDjaCacheManager $obj
  * @throws DjaException
  */
 public static function setCacheManager($obj)
 {
     if (!$obj instanceof IDjaCacheManager) {
         throw new DjaException('Unable to use object not implementing IDjaCacheManager as Cache Manager.');
     }
     self::$_url_dispatcher = $obj;
 }