diff --git a/Framework/View/TemplateEngine/Twig.php b/Framework/View/TemplateEngine/Twig.php index 07726bd..d7b6635 100644 --- a/Framework/View/TemplateEngine/Twig.php +++ b/Framework/View/TemplateEngine/Twig.php @@ -108,7 +108,7 @@ private function initTwig() $this->twig->addFilter(new TwigFilter('trans', '__')); $this->twig->addExtension(new DebugExtension()); - $twig->addExtension(new StringExtension()); + $this->twig->addExtension(new StringExtension()); $this->eventManager->dispatch('twig_init', ['twig' => $this->twig]); }