- Added basic exception remodeling, seaking original template sources.

This commit is contained in:
mcndave committed 2020-10-21 03:20:35 +00:00
1 parent 10632e9f67
commit 1334278e37
7 files changed
+232 -57

No files matched your search

+6 -1
View File
@@ -53,8 +53,13 @@ class FileFetcher
throw new \RuntimeException("Given view file `$fileName` can not be found within given folder list..");
}
public function getFilePath(string $fileName) : string
{
return $this->findFile($fileName);
}
public function getFileContent(string $fileName) : string
{
return file_get_contents($this->findFile($fileName));
return file_get_contents($this->getFilePath($fileName));
}
}