File tree Expand file tree Collapse file tree 2 files changed +38
-4
lines changed Expand file tree Collapse file tree 2 files changed +38
-4
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,10 @@ Parameter Description
124
124
**type **: ``string `` **default **: ``all ``
125
125
126
126
This determines exactly *how * the CIDR notation is validated and can take one
127
- of these values:
127
+ of :ref: ` IP version ranges < reference-constraint-ip-version >`.
128
128
129
- * `` 4 ``: validates for CIDR notations that have an IPv4;
130
- * `` 6 ``: validates for CIDR notations that have an IPv6;
131
- * `` all ``: validates all CIDR formats .
129
+ .. versionadded :: 7.1
130
+
131
+ The support of all IP version ranges was introduced in Symfony 7.1 .
132
132
133
133
.. _`CIDR` : https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ Parameter Description
97
97
98
98
.. include :: /reference/constraints/_payload-option.rst.inc
99
99
100
+ .. _reference-constraint-ip-version :
101
+
100
102
``version ``
101
103
~~~~~~~~~~~
102
104
@@ -132,6 +134,33 @@ of a variety of different values:
132
134
``all_no_res ``
133
135
Validates for all IP formats but without reserved IP ranges
134
136
137
+ **No public ranges **
138
+
139
+ ``4_no_public ``
140
+ Validates for IPv4 but without public IP ranges
141
+ ``6_no_public ``
142
+ Validates for IPv6 but without public IP ranges
143
+ ``all_no_public ``
144
+ Validates for all IP formats but without public IP range
145
+
146
+ **Only private ranges **
147
+
148
+ ``4_private ``
149
+ Validates for IPv4 but without public and reserved ranges
150
+ ``6_private ``
151
+ Validates for IPv6 but without public and reserved ranges
152
+ ``all_private ``
153
+ Validates for all IP formats but without public and reserved ranges
154
+
155
+ **Only reserved ranges **
156
+
157
+ ``4_reserved ``
158
+ Validates for IPv4 but without private and public ranges
159
+ ``6_reserved ``
160
+ Validates for IPv6 but without private and public ranges
161
+ ``all_reserved ``
162
+ Validates for all IP formats but without private and public ranges
163
+
135
164
**Only public ranges **
136
165
137
166
``4_public ``
@@ -140,3 +169,8 @@ of a variety of different values:
140
169
Validates for IPv6 but without private and reserved ranges
141
170
``all_public ``
142
171
Validates for all IP formats but without private and reserved ranges
172
+
173
+ .. versionadded :: 7.1
174
+
175
+ The ``*_no_public ``, ``*_reserved `` and ``*_public `` ranges were introduced
176
+ in Symfony 7.1.
You can’t perform that action at this time.
0 commit comments