public function displayBlock(string $name, array $context = []) { $context += $this->env ->getGlobals(); foreach ($this->template ->yieldBlock($name, $context) as $data) { echo $data; } }