Similar to AssetWriter except this class takes a more simplistic approach to writing cache files. It also provides ways to read existing cache files.
Inheritance: use trait FreshTrait
Beispiel #1
0
 /**
  * Create an AssetCacher
  *
  * @param string $path The path to cache assets into.
  * @return \MiniAsset\AssetCacher
  */
 public function cacher($path = '')
 {
     if (!$path) {
         $path = sys_get_temp_dir() . DIRECTORY_SEPARATOR;
     }
     $cache = new AssetCacher($path, $this->config->theme());
     $cache->configTimestamp($this->config->modifiedTime());
     $cache->filterRegistry($this->filterRegistry());
     return $cache;
 }