File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,17 @@ message as its argument and returns an instance of
180
180
:class: `Symfony\\ Component\\ Validator\\ Violation\\ ConstraintViolationBuilderInterface `.
181
181
The ``addViolation() `` method call finally adds the violation to the context.
182
182
183
+ .. tip ::
184
+
185
+ Validation error messages are automatically passed to the Symfony
186
+ Translation component. If your application doesn't use translations, you
187
+ can disable this behavior by calling the ``disableTranslation() `` method
188
+ of ``ConstraintViolationBuilderInterface ``.
189
+
190
+ .. versionadded :: 6.4
191
+
192
+ The ``disableTranslation() `` method was introduced in Symfony 6.4.
193
+
183
194
Using the new Validator
184
195
-----------------------
185
196
You can’t perform that action at this time.
0 commit comments