From 7bbb8beb1783fbfd7907f79068b08527a2640e91 Mon Sep 17 00:00:00 2001 From: Eriksen Costa Date: Thu, 21 Apr 2011 23:20:52 -0300 Subject: [PATCH] [FrameworkBundle] updated method call --- .../DependencyInjection/Compiler/AddFormGuessersPass.php | 2 +- .../DependencyInjection/Compiler/AddFormTypesPass.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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