public function addGlobal(string $key, $value) : self { $this->twigEnv->addGlobal($key, $value); return $this; }