protected function writeFileWatch(Build $builder, Generate\Collections $collections) { foreach ($collections->getFiles() as $file) { $builder->watch($file); $builder->watch(dirname($file)); } }
protected function writeFileWatch(Watch $watcher, Generate\Collections $collections) { foreach ($collections->getFiles() as $file) { $watcher->watchDir(dirname($file)); $watcher->watchFile($file); } $watcher->watchFile($this->config->getLoader()); $watcher->watch(); }