getFinder(); if (isset($this->cache[$name])) { return $this->cache[$name]; } if (static::$allowInclude === true && File::isFile($name)) { return $this->cache[$name] = $name; } $path = $finder->find($name); return $this->cache[$name] = $path; } public function getSourceContext($name) { return new TwigSource(File::get($this->findTemplate($name)), $name); } public function getCacheKey($name) { return $this->findTemplate($name); } public function isFresh($name, $time) { return File::lastModified($this->findTemplate($name)) <= $time; } public function getFilename($name) { return $this->findTemplate($name); } public function exists($name) { try { $this->findTemplate($name); return true; } catch (Exception $exception) { return false; } } }