/** * 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'); } }
/** * Constructor * * @param array $options */ public function __construct($config = array()) { parent::__construct($config); $this->_initialize(); }