You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -185,6 +184,15 @@ public function configureOptions(OptionsResolver $resolver)
185
184
return$attributes;
186
185
};
187
186
187
+
// BC for "read_only" option
188
+
$attrNormalizer = function (Options$options, array$attr) {
189
+
if (!isset($attr['readonly']) && $options['read_only']) {
190
+
$attr['readonly'] = true;
191
+
}
192
+
193
+
return$attr;
194
+
};
195
+
188
196
$readOnlyNormalizer = function (Options$options, $readOnly) {
189
197
if (null !== $readOnly) {
190
198
trigger_error('The form option "read_only" is deprecated since version 2.7 and will be removed in 3.0. Use "attr[\'readonly\']" instead.', E_USER_DEPRECATED);
@@ -200,7 +208,7 @@ public function configureOptions(OptionsResolver $resolver)
200
208
'empty_data' => $emptyData,
201
209
'trim' => true,
202
210
'required' => true,
203
-
'read_only' => null,
211
+
'read_only' => null,// deprecated
204
212
'max_length' => null,
205
213
'pattern' => null,
206
214
'property_path' => null,
@@ -219,6 +227,7 @@ public function configureOptions(OptionsResolver $resolver)
219
227
'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.',
0 commit comments