- Added basic exception remodeling, seaking original template sources.
This commit is contained in:
1 parent
10632e9f67
commit
1334278e37
7 files changed
+232
-57
No files matched your search
+6
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user