public function __construct(CacheProvider $cache, Config $config) { $this->cache = $cache; $this->latte = new Engine(); $parser = $this->latte->getParser(); $parser->defaultSyntax = $config->default_syntax; $this->latte->setTempDirectory($cache->config->temp_dir); }