Example #1
0
 /**
  * Creates files from an array of template files
  *
  * @param $files
  */
 private function createFilesFromTemplate($files)
 {
     foreach ($files as $from => $to) {
         $fileContent = $this->template->fetch($from);
         $path = $this->outputDirectoryProvider->getPath();
         $this->ioAdapter->createDirectory(dirname($path . $to));
         $this->ioAdapter->createFile($path . $to, $fileContent);
     }
 }