浏览代码

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']));
                 }
             }
         }