소스 검색

Merge remote branch 'kriswallsmith/assetic/update'

* kriswallsmith/assetic/update:
  [AsseticBundle] updated for assetic changes
Fabien Potencier 14 년 전
부모
커밋
7eb4b67ec4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Bundle/AsseticBundle/DependencyInjection/Compiler/AssetManagerPass.php

+ 1 - 1
src/Symfony/Bundle/AsseticBundle/DependencyInjection/Compiler/AssetManagerPass.php

@@ -54,7 +54,7 @@ class AssetManagerPass implements CompilerPassInterface
         foreach ($container->findTaggedServiceIds('assetic.formula_resource') as $id => $attributes) {
             foreach ($attributes as $attr) {
                 if (isset($attr['loader'])) {
-                    $am->addMethodCall('addResource', array($attr['loader'], new Reference($id)));
+                    $am->addMethodCall('addResource', array(new Reference($id), $attr['loader']));
                 }
             }
         }