Thanks to visit codestin.com
Credit goes to github.com

Skip to content

document "choices" wildcard in Choice validation constraint #10836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions reference/constraints/Choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,17 @@ too few choices per the `min`_ option.

You can use the following parameters in this message:

+------------------+------------------------------------------------+
| Parameter | Description |
+==================+================================================+
| ``{{ limit }}`` | The lower limit of choices |
+------------------+------------------------------------------------+
+--------------------+-------------------------------------------------------+
| Parameter | Description |
+====================+=======================================================+
| ``{{ value }}`` | The current (invalid) value |
+--------------------+-------------------------------------------------------+
| ``{{ choices }}`` | String list of available choices, separated by comas |
+--------------------+-------------------------------------------------------+

.. versionadded:: 4.3

The ``{{ choices }}`` parameter was introduced in Symfony 4.3.

maxMessage
~~~~~~~~~~
Expand All @@ -391,11 +397,17 @@ too many options per the `max`_ option.

You can use the following parameters in this message:

+------------------+------------------------------------------------+
| Parameter | Description |
+==================+================================================+
| ``{{ limit }}`` | The upper limit of choices |
+------------------+------------------------------------------------+
+--------------------+-------------------------------------------------------+
| Parameter | Description |
+====================+=======================================================+
| ``{{ value }}`` | The current (invalid) value |
+--------------------+-------------------------------------------------------+
| ``{{ choices }}`` | String list of available choices, separated by comas |
+--------------------+-------------------------------------------------------+

.. versionadded:: 4.3

The ``{{ choices }}`` parameter was introduced in Symfony 4.3.

strict
~~~~~~
Expand Down