root = realpath($root); $this->cache = realpath($cache); $this->engineClass = $engineClass; } public function load ( $file, $content = null ) { $engineClass = $this->engineClass; return $engineClass::fromFile($file, $this->root, $this->cache, $content); } public function exists ( $file ) { $root = Path::get($this->root); $file = $root->append($file); return $file->shift($root) && file_exists($file) && is_file($file); } public function getClass () { return $this->engineClass; } public function getRoot () { return $this->root; } public function getCache () { return $this->cache; } } ?>