示例#1
0
 /**
  * Clean the collections manifest entry files.
  * 
  * @param  string  $collection
  * @param  \Basset\Manifest\Entry  $entry
  * @return void
  */
 protected function cleanManifestFiles($collection, Entry $entry)
 {
     if (!$entry->hasProductionFingerprints() or !isset($this->environment[$collection])) {
         $this->deleteMatchingFiles($this->buildPath . '/' . $collection . '-*.*');
         $entry->resetProductionFingerprints();
     }
     if (!$entry->hasDevelopmentAssets() or !isset($this->environment[$collection])) {
         $this->files->deleteDirectory($this->buildPath . '/' . $collection);
         $entry->resetDevelopmentAssets();
     }
 }