From 333d301ce9d63429b63c5f2c86b454b4ed87bb90 Mon Sep 17 00:00:00 2001 From: Laurent VOULLEMIER Date: Sun, 15 Mar 2020 09:26:25 +0100 Subject: [PATCH] Update validator.rst The Validator class doesn't exist anymore --- components/validator.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/validator.rst b/components/validator.rst index e92c8f3e80a..82850d1faad 100644 --- a/components/validator.rst +++ b/components/validator.rst @@ -69,8 +69,8 @@ If you have lots of validation errors, you can filter them by error code:: Retrieving a Validator Instance ------------------------------- -The :class:`Symfony\\Component\\Validator\\Validator` class is the main access -point of the Validator component. To create a new instance of this class, it's +The Validator object (that implements :class:`Symfony\\Component\\Validator\\Validator\\ValidatorInterface`) is the main access +point of the Validator component. To create a new instance of it, it's recommended to use the :class:`Symfony\\Component\\Validator\\Validation` class:: use Symfony\Component\Validator\Validation; @@ -79,7 +79,7 @@ recommended to use the :class:`Symfony\\Component\\Validator\\Validation` class: This ``$validator`` object can validate simple variables such as strings, numbers and arrays, but it can't validate objects. To do so, configure the -``Validator`` class as explained in the next sections. +``Validator`` as explained in the next sections. Learn More ----------