Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit88df04a

Browse files
committed
add validation config reference section
1 parent87365fa commit88df04a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

‎reference/configuration/framework.rst‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ Configuration
4848
* `translator`_
4949
*:ref:`enabled<translator.enabled>`
5050
* `fallback`_
51+
* `validation`_
52+
* `cache`_
53+
* `enable_annotations`_
54+
* `translation_domain`_
55+
* `strict_email`_
5156

5257
secret
5358
~~~~~~
@@ -517,6 +522,40 @@ This option is used when the translation key for the current locale wasn't found
517522

518523
For more details, see:doc:`/book/translation`.
519524

525+
validation
526+
~~~~~~~~~~
527+
528+
cache
529+
.....
530+
531+
**type**: ``string``
532+
533+
The implementation to be used to cache validation metadata.
534+
535+
enable_annotations
536+
..................
537+
538+
**type**: ``Boolean`` **default**: ``false``
539+
540+
If this option is enabled, validation constraints can be defined using annotations.
541+
542+
translation_domain
543+
..................
544+
545+
**type**: ``string`` **default**: ``validators``
546+
547+
The translation domain that is used to translation validation constraint
548+
error messages.
549+
550+
strict_email
551+
............
552+
553+
**type**: ``Boolean`` **default**: ``false``
554+
555+
If this option is enabled, the `egulias/email-validator`_ library will be
556+
used by the:doc:`/reference/constraints/Email` validator. Otherwise, the
557+
validator uses a simple regular expression to validate email addresses.
558+
520559
Full default Configuration
521560
--------------------------
522561

@@ -646,3 +685,4 @@ Full default Configuration
646685
647686
.. _`protocol-relative`:http://tools.ietf.org/html/rfc3986#section-4.2
648687
.. _`PhpStormOpener`:https://github.com/pinepain/PhpStormOpener
688+
.. _`egulias/email-validator`:https://github.com/egulias/EmailValidator

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp