浏览代码

[TwigBundle] updated to support asset packages

Kris Wallsmith 14 年之前
父节点
当前提交
7d9ddb546e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php

+ 2 - 2
src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php

@@ -83,9 +83,9 @@ class TemplatingExtension extends \Twig_Extension
         return $this->container->get('router')->generate($name, $parameters, true);
     }
 
-    public function getAssetUrl($location)
+    public function getAssetUrl($location, $packageName = null)
     {
-        return $this->container->get('templating.helper.assets')->getUrl($location);
+        return $this->container->get('templating.helper.assets')->getUrl($location, $packageName);
     }
 
     /**