From 05a825ac54bdd2d4eba4e269eb9615b9cc8388be Mon Sep 17 00:00:00 2001 From: Nicolas PHILIPPE Date: Thu, 3 Jan 2019 15:08:42 +0100 Subject: [PATCH] document "choices" wildcard in Choice validation constraint --- reference/constraints/Choice.rst | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index 89a67af8d3b..1849b0949ef 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -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 ~~~~~~~~~~ @@ -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 ~~~~~~