compiler = $compiler; $this->filesystem = $filesystem; } /** * Build LESS files * * @param array $files * * @throws RuntimeException */ public function build($files, OutputInterface $output = null) { foreach ($files as $lessFile => $target) { $this->filesystem->mkdir(dirname($target)); if (null !== $output) { $output->writeln("\t".basename($target)); } $this->compiler->compile($target, $lessFile); } } }