Skip to content

Commit 8411b83

Browse files
a-menshchikovfabpot
authored andcommitted
Added support for using the "{{ label }}" placeholder in constraint messages
1 parent b2d57a8 commit 8411b83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Resources/config/form.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@
126126
->args([service('request_stack')])
127127

128128
->set('form.type_extension.form.validator', FormTypeValidatorExtension::class)
129-
->args([service('validator')])
129+
->args([
130+
service('validator'),
131+
true,
132+
service('twig.form.renderer')->ignoreOnInvalid(),
133+
service('translator')->ignoreOnInvalid(),
134+
])
130135
->tag('form.type_extension', ['extended-type' => FormType::class])
131136

132137
->set('form.type_extension.repeated.validator', RepeatedTypeValidatorExtension::class)

0 commit comments

Comments
 (0)