Skip to content

Commit 671a124

Browse files
committed
minor #7749 Reword the explanation about enabling validation and annotations (javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Reword the explanation about enabling validation and annotations This fixes #7412. Commits ------- fee9949 Reword the explanation about enabling validation and annotations
2 parents a986152 + fee9949 commit 671a124

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

validation.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,9 @@ Inside the template, you can output the list of errors exactly as needed:
211211
Configuration
212212
-------------
213213

214-
The Symfony validator is enabled by default, but you must explicitly enable
215-
annotations if you're using the annotation method to specify your constraints:
214+
Before using the Symfony validator, make sure it's enabled in the main config
215+
file. Besides, if you plan to use annotations to configure validation, make sure
216+
that the ``enable_annotations`` option is ``true``:
216217

217218
.. configuration-block::
218219

0 commit comments

Comments
 (0)