Переглянути джерело

[FrameworkBundle] Fixed getting template helper services not in the container's 'templating.helper' namespace

Kris Wallsmith 15 роки тому
батько
коміт
7152ebb726

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Templating/Engine.php

@@ -95,7 +95,7 @@ class Engine extends BaseEngine
         }
 
         if (is_string($this->helpers[$name])) {
-            $this->helpers[$name] = $this->container->get('templating.helper.'.$name);
+            $this->helpers[$name] = $this->container->get($this->helpers[$name]);
             $this->helpers[$name]->setCharset($this->charset);
         }