File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,6 @@ Creating the Constraint Class
14
14
15
15
First you need to create a Constraint class and extend :class: `Symfony\\ Component\\ Validator\\ Constraint `:
16
16
17
- .. versionadded :: 5.2
18
-
19
- The ability to use PHP attributes to configure constraint was introduced in
20
- Symfony 5.2. Prior to this, Doctrine Annotations were the only way to
21
- annotate constraints.
22
-
23
17
.. configuration-block ::
24
18
25
19
.. code-block :: php-annotations
@@ -50,6 +44,12 @@ First you need to create a Constraint class and extend :class:`Symfony\\Componen
50
44
public $message = 'The string "{{ string }}" contains an illegal character: it can only contain letters or numbers.';
51
45
}
52
46
47
+ .. versionadded :: 5.2
48
+
49
+ The ability to use PHP attributes to configure constraint was introduced in
50
+ Symfony 5.2. Prior to this, Doctrine Annotations were the only way to
51
+ annotate constraints.
52
+
53
53
.. note ::
54
54
55
55
The ``@Annotation `` annotation is necessary for this new constraint in
You can’t perform that action at this time.
0 commit comments