فهرست منبع

[AsseticBundle] updated for assetic changes

Kris Wallsmith 14 سال پیش
والد
کامیت
b6cac77930
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 ($container->findTaggedServiceIds('assetic.formula_resource') as $id => $attributes) {
             foreach ($attributes as $attr) {
             foreach ($attributes as $attr) {
                 if (isset($attr['loader'])) {
                 if (isset($attr['loader'])) {
-                    $am->addMethodCall('addResource', array($attr['loader'], new Reference($id)));
+                    $am->addMethodCall('addResource', array(new Reference($id), $attr['loader']));
                 }
                 }
             }
             }
         }
         }