diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormGuessersPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormGuessersPass.php index 5431798e10..3795eb13d1 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormGuessersPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormGuessersPass.php @@ -35,6 +35,6 @@ class AddFormGuessersPass implements CompilerPassInterface $guessers[] = new Reference($serviceId); } - $container->getDefinition('form.factory')->setArgument(1, $guessers); + $container->getDefinition('form.factory')->replaceArgument(1, $guessers); } } diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormTypesPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormTypesPass.php index edd23e2f9b..43e0a5d8b4 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormTypesPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormTypesPass.php @@ -41,6 +41,6 @@ class AddFormTypesPass implements CompilerPassInterface $types[$alias] = $serviceId; } - $container->getDefinition('form.type.loader')->setArgument(1, $types); + $container->getDefinition('form.type.loader')->replaceArgument(1, $types); } } \ No newline at end of file