8000 Removed useless argument from DI configuration · symfony/symfony@fa4228b · GitHub
[go: up one dir, main page]

Skip to content

Commit fa4228b

Browse files
author
Bernhard Schussek
committed
Removed useless argument from DI configuration
1 parent af78d00 commit fa4228b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ private function registerFormConfiguration(array $config, ContainerBuilder $cont
435435
{
436436
$loader->load('form.xml');
437437

438-
$container->getDefinition('form.type_extension.form.validator')->replaceArgument(1, $config['form']['legacy_error_messages']);
438+
$container->getDefinition('form.type_extension.form.validator')->setArgument(1, $config['form']['legacy_error_messages']);
439439

440440
if (null === $config['form']['csrf_protection']['enabled']) {
441441
$config['form']['csrf_protection']['enabled'] = $config['csrf_protection']['enabled'];

src/Symfony/Bundle/FrameworkBundle/Resources/config/form.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
<service id="form.type_extension.form.validator" class="Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension">
9999
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
100100
<argument type="service" id="validator" />
101-
<argument type="string" /> <!-- Legacy error messages -->
102101
</service>
103102
<service id="form.type_extension.repeated.validator" class="Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension">
104103
<tag name="form.type_extension" />

0 commit comments

Comments
 (0)
0