Permalink
Browse files

feature #4673 [Reference] add validation config reference section (xa…

…bbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Reference] add validation config reference section

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Commits
-------

79ad3b5 add validation config reference section
  • Loading branch information...
weaverryan committed Dec 29, 2014
2 parents 55a32cf + 79ad3b5 commit bd65c3c1bd950419438061646edbb4b1453493a7
Showing with 34 additions and 0 deletions.
  1. +34 −0 reference/configuration/framework.rst
@@ -48,6 +48,10 @@ Configuration
* `translator`_
* :ref:`enabled <translator.enabled>`
* `fallback`_
* `validation`_
* `cache`_
* `enable_annotations`_
* `translation_domain`_
secret
~~~~~~
@@ -517,6 +521,35 @@ This option is used when the translation key for the current locale wasn't found
For more details, see :doc:`/book/translation`.
validation
~~~~~~~~~~
cache
.....
**type**: ``string``
This value is used to determine the service that is used to persist class
metadata in a cache. The actual service name is built by prefix the configured
value with ``validator.mapping.cache.`` (e.g. if the value is ``apc``, the
``validator.mapping.cache.apc`` service will be injected). The service has
to implement the :class:`Symfony\\Component\\Validator\\Mapping\\Cache\\CacheInterface`.
enable_annotations
..................
**type**: ``Boolean`` **default**: ``false``
If this option is enabled, validation constraints can be defined using annotations.
translation_domain
..................
**type**: ``string`` **default**: ``validators``
The translation domain that is used when translating validation constraint
error messages.
Full default Configuration
--------------------------
@@ -646,3 +679,4 @@ Full default Configuration
.. _`protocol-relative`: http://tools.ietf.org/html/rfc3986#section-4.2
.. _`PhpStormOpener`: https://github.com/pinepain/PhpStormOpener
.. _`egulias/email-validator`: https://github.com/egulias/EmailValidator

0 comments on commit bd65c3c

Please sign in to comment.