示例#1
0
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct($config)
 {
     $defaults = array('path' => ROX_APP_PATH . '/tmp/cache');
     parent::__construct($config + $defaults);
     if (!is_dir($this->_config['path'])) {
         throw new Exception('Cache path does not exists');
     }
 }
示例#2
0
 /**
  * Constructor
  *
  * @param array $options
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->_initialize();
 }