DependencyInjection/Configuration.php
changeset 23 b435f8055cb4
parent 21 780ef37e63b9
child 33 6c87166b819c
--- a/DependencyInjection/Configuration.php	Fri Oct 28 14:57:11 2011 +0200
+++ b/DependencyInjection/Configuration.php	Fri Nov 04 11:56:59 2011 +0100
@@ -41,6 +41,12 @@
                                     ->then(function($v) { return intval($v); })
                                 ->end()
                             ->end()
+                            ->scalarNode('weight')->defaultValue(1.0)
+                                ->beforeNormalization()
+                                    ->ifString()
+                                    ->then(function($v) { return floatval($v); })
+                                ->end()
+                            ->end()
                             ->scalarNode('accessor')->end()
                         ->end()
                     ->end()