Exemplo n.º 1
0
 /**
  * Constructor for directory cache,
  * @param \qio\Directory|string $directory
  * @param \qio\Directory|string $destination
  * @param array $rules
  * @param array $assets
  */
 public function __construct($directory, $destination, $hash = false, $prefix = '', array $rules = [], array $assets = [])
 {
     if (is_string($directory) && is_dir($directory)) {
         $this->source = new qio\Directory($directory);
     } elseif ($directory instanceof qio\Directory) {
         $this->source = $directory;
     }
     if (is_string($destination) && is_dir($destination)) {
         $this->destination = new qio\Directory($destination);
     } elseif ($directory instanceof qio\Directory) {
         $this->destination = $destination;
     }
     parent::__construct($hash, $prefix, $rules, $assets);
 }
Exemplo n.º 2
0
Arquivo: Base.php Projeto: jgswift/qio
 /**
  * Alias for qio\Asset\Cache::clearFilters
  */
 public function clearFilters()
 {
     $this->cache->clearFilters();
 }