示例#1
0
 /**
  * Handle the command.
  *
  * @param  Asset      $asset
  * @throws \Exception
  */
 public function handle(Asset $asset)
 {
     foreach ($this->builder->getAssets() as $collection => $assets) {
         if (!is_array($assets)) {
             $assets = [$assets];
         }
         foreach ($assets as $file) {
             $filters = explode('|', $file);
             $file = array_shift($filters);
             $asset->add($collection, $file, $filters);
         }
     }
 }