public function addGlobalContext($name, $value) { $this->template->getEnvironment()->addGlobal($name, $value); }