浏览代码

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

Kris Wallsmith 15 年之前
父节点
当前提交
7152ebb726
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Templating/Engine.php

+ 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);
         }