Skip to content

Commit f3db711

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: Doctrine annotations is not required anymore for validator
2 parents 2217d9e + 2276534 commit f3db711

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

validation.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ install the validator before using it:
2323

2424
.. code-block:: terminal
2525
26-
$ composer require symfony/validator doctrine/annotations
26+
$ composer require symfony/validator
27+
28+
If your project still uses annotations to define the validation constraints (as
29+
shown later in this article) you also need to install ``doctrine/annotations``:
30+
31+
.. code-block:: terminal
32+
33+
$ composer require doctrine/annotations
2734
2835
.. note::
2936

0 commit comments

Comments
 (0)