public function context() { if (!isset($this->m_context)) { $this->refreshContext(); } return $this->m_context; }
public function __construct(ThemesService $themesService) { $this->smarty = \CampTemplate::singleton(); $this->smarty->assign('gimme', $this->smarty->context()); $this->themesService = $themesService; $this->preconfigureSmarty(); }