- Abstracts path creation logic

- Adds blank index.php to cache and temp folders
- Updates unit tests
- Extracts cache folder location from Renderer to Env class
- Implements #643
This commit is contained in:
Vlad
2016-11-14 19:23:32 -05:00
parent 8c3525589c
commit 54f6ab0c79
3 changed files with 28 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ class Renderer {
function __construct($caching_enabled = false, $debugging_enabled = false) {
$this->caching_enabled = $caching_enabled;
$this->debugging_enabled = $debugging_enabled;
$this->cache_path = Env::$temp_path . '/cache';
$this->cache_path = Env::$cache_path;
$file_system = new TwigFileSystem(Env::$views_path);
$this->renderer = new TwigEnv(