8000 Merge branch '5.0' · symfony/symfony-docs@4cf2cdf · GitHub
[go: up one dir, main page]

Skip to content

Commit 4cf2cdf

Browse files
committed
Merge branch '5.0'
* 5.0: Minor tweak Update configuration.rst Update framework.rst Update validator.rst
2 parents ab66936 + fc27761 commit 4cf2cdf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

components/validator.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ If you have lots of validation errors, you can filter them by error code::
6565
Retrieving a Validator Instance
6666
-------------------------------
6767

68-
The :class:`Symfony\\Component\\Validator\\Validator` class is the main access
69-
point of the Validator component. To create a new instance of this class, it's
68+
The Validator object (that implements :class:`Symfony\\Component\\Validator\\Validator\\ValidatorInterface`) is the main access
69+
point of the Validator component. To create a new instance of it, it's
7070
recommended to use the :class:`Symfony\\Component\\Validator\\Validation` class::
7171

7272
use Symfony\Component\Validator\Validation;
@@ -75,7 +75,7 @@ recommended to use the :class:`Symfony\\Component\\Validator\\Validation` class:
7575

7676
This ``$validator`` object can validate simple variables such as strings, numbers
7777
and arrays, but it can't validate objects. To do so, configure the
78-
``Validator`` class as explained in the next sections.
78+
``Validator`` as explained in the next sections.
7979

8080
Learn More
8181
----------

configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ going to production:
417417
#. Create a configuration directory with the same name as the environment (in
418418
this case, ``config/packages/staging/``);
419419
#. Add the needed configuration files in ``config/packages/staging/`` to
420-
define the behavior of the new environment. Symfony loads first the files in
421-
``config/packages/*.yaml``, so you must only configure the differences with
422-
those files;
420+
define the behavior of the new environment. Symfony loads the
421+
``config/packages/*.yaml`` files first, so you only need to configure the
422+
differences to those files;
423423
#. Select the ``staging`` environment using the ``APP_ENV`` env var as explained
424424
in the previous section.
425425

reference/configuration/framework.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,10 +2229,10 @@ If this option is enabled, validation constraints can be defined using annotatio
22292229
translation_domain
22302230
..................
22312231

2232-
**type**: ``string`` **default**: ``validators``
2232+
**type**: ``string | false`` **default**: ``validators``
22332233

22342234
The translation domain that is used when translating validation constraint
2235-
error messages.
2235+
error messages. Use false to disable translations.
22362236

22372237
.. _reference-validation-not-compromised-password:
22382238

0 commit comments

Comments
 (0)
0