Skip to content

Commit 49a20e8

Browse files
javiereguiluzweaverryan
authored andcommitted
Final rewords
1 parent a65855f commit 49a20e8

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

components/validator/introduction.rst

+2-12
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,8 @@ recommended to use the :class:`Symfony\\Component\\Validator\\Validation` class:
5858
$validator = Validation::createValidator();
5959

6060
This ``$validator`` object can validate simple variables such as strings, numbers
61-
and arrays, but it can't validate objects. To do so, use the
62-
:class:`Symfony\\Component\\Validator\\ValidatorBuilder` class to configure the
63-
``Validator`` class::
64-
65-
use Symfony\Component\Validator\Validation;
66-
67-
$validator = Validation::createValidatorBuilder()
68-
// ... build a custom instance of the Validator
69-
->getValidator();
70-
71-
In the next sections, you'll learn about all the validator features that you
72-
can configure:
61+
and arrays, but it can't validate objects. To do so, configure the
62+
``Validator`` class as explained in the next sections:
7363

7464
* :doc:`/components/validator/resources`
7565
* :doc:`/components/validator/metadata`

components/validator/metadata.rst

-7
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@ Then, add the Validator component configuration to the class::
6464
}
6565
}
6666

67-
.. note::
68-
69-
The keen-eyed among you will have noticed that the prefix of the getter
70-
(``get`` or ``is``) is omitted in the mapping. This allows you to move the
71-
constraint to a property with the same name later (or vice versa) without
72-
changing your validation logic.
73-
7467
Classes
7568
-------
7669

0 commit comments

Comments
 (0)