소스 검색

[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);
     }
 
     /**