18 return strpos($source,$this->_ext);
26 return $this->_cache ? $this->_cache . md5($source) . $this->_ext . \Rsi\File::ext($source) :
false;
34 if(!array_key_exists($type,$this->handlers)) $this->handlers[$type] = [];
35 if(!array_key_exists(null,$config =& $this->handlers[$type])){
36 $class_name = $config[
'className'] ?? __CLASS__ .
'\\Handler\\' . ucfirst($type);
37 $config[null] =
new $class_name($this,$config);
46 protected function _get($key){
$handlers
Array with handlers (key = type, value = config).
handler($type)
Get a handler.
cacheTarget($source)
Filename for a cache.
alreadyMinimized($source)
Check if a file is already minimized.
component($name)
Get a component (local or default).