public function warmupCache($name) { if (!$this->tempDirectory) { throw new \LogicException('Path to temporary directory is not set.'); } $class = $this->getTemplateClass($name); if (!class_exists($class, FALSE)) { $this->loadTemplate($name); } }