Skip to content

Commit 2276534

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: Doctrine annotations is not required anymore for validator
2 parents 4a72b24 + e6c565b commit 2276534

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)