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