Browse Source

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

Kris Wallsmith 15 năm trước cách đây
mục cha
commit
7152ebb726
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
         }