protected function _getStorage($key) { if (!isset($this->_options['storage'])) { self::$out->stop("Definition for storage driver '{$key}' not found."); } $params = $this->_options['storage'][$key]; if (isset($params['class'])) { $class = "Storage_" . ucfirst($params['class']); } else { $class = "Storage_" . ucfirst($key); } self::$out->logDebug("configuring storage driver '{$class}' from key '{$key}'"); return new $class($key, $this, self::$out, $params); }