Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79ad3b5

Browse filesBrowse files
committed
add validation config reference section
1 parent 87365fa commit 79ad3b5
Copy full SHA for 79ad3b5

File tree

Expand file treeCollapse file tree

1 file changed

+34
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+34
-0
lines changed

‎reference/configuration/framework.rst

Copy file name to clipboardExpand all lines: reference/configuration/framework.rst
+34Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ Configuration
4848
* `translator`_
4949
* :ref:`enabled <translator.enabled>`
5050
* `fallback`_
51+
* `validation`_
52+
* `cache`_
53+
* `enable_annotations`_
54+
* `translation_domain`_
5155

5256
secret
5357
~~~~~~
@@ -517,6 +521,35 @@ This option is used when the translation key for the current locale wasn't found
517521

518522
For more details, see :doc:`/book/translation`.
519523

524+
validation
525+
~~~~~~~~~~
526+
527+
cache
528+
.....
529+
530+
**type**: ``string``
531+
532+
This value is used to determine the service that is used to persist class
533+
metadata in a cache. The actual service name is built by prefix the configured
534+
value with ``validator.mapping.cache.`` (e.g. if the value is ``apc``, the
535+
``validator.mapping.cache.apc`` service will be injected). The service has
536+
to implement the :class:`Symfony\\Component\\Validator\\Mapping\\Cache\\CacheInterface`.
537+
538+
enable_annotations
539+
..................
540+
541+
**type**: ``Boolean`` **default**: ``false``
542+
543+
If this option is enabled, validation constraints can be defined using annotations.
544+
545+
translation_domain
546+
..................
547+
548+
**type**: ``string`` **default**: ``validators``
549+
550+
The translation domain that is used when translating validation constraint
551+
error messages.
552+
520553
Full default Configuration
521554
--------------------------
522555

@@ -646,3 +679,4 @@ Full default Configuration
646679
647680
.. _`protocol-relative`: http://tools.ietf.org/html/rfc3986#section-4.2
648681
.. _`PhpStormOpener`: https://github.com/pinepain/PhpStormOpener
682+
.. _`egulias/email-validator`: https://github.com/egulias/EmailValidator

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.