public function onTerminate(CarewEvent $carewEvent)
 {
     foreach ($this->finder->in($carewEvent->getArgument('webDir')) as $file) {
         $asset = new FileAsset($file->getPathname(), array($this->getFilter()));
         file_put_contents($file->getPathname(), $asset->dump());
     }
 }
예제 #2
0
 public function onTerminate(CarewEvent $event)
 {
     $output = $event->getArgument('webDir') . '/' . $this->output;
     $this->filesystem->mkdir(dirname($output));
     $this->less->importDir = dirname($this->input);
     file_put_contents($output, $this->less->parse(file_get_contents($this->input)));
 }