File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1242,12 +1242,12 @@ setting the ``name_converter`` setting to
1242
1242
snake_case to CamelCase
1243
1243
~~~~~~~~~~~~~~~~~~~~~~~
1244
1244
1245
- In Symfony applications is common to use camelCase to name properties. However
1246
- some packages can use snake_case as convention.
1245
+ In Symfony applications, it is common to use camelCase for naming properties.
1246
+ However some packages may follow a snake_case convention.
1247
1247
1248
1248
Symfony provides a built-in name converter designed to transform between
1249
- CamelCase and snake_cased styles during serialization and deserialization
1250
- processes. You can use it instead of the metadata aware name converter by
1249
+ CamelCase and snake_case styles during serialization and deserialization
1250
+ processes. You can use it instead of the metadata- aware name converter by
1251
1251
setting the ``name_converter `` setting to
1252
1252
``serializer.name_converter.snake_case_to_camel_case ``:
1253
1253
@@ -1300,6 +1300,10 @@ setting the ``name_converter`` setting to
1300
1300
];
1301
1301
$serializer = new Serializer($normalizers, $encoders);
1302
1302
1303
+ .. versionadded :: 7.2
1304
+
1305
+ The snake_case to CamelCase converter was introduced in Symfony 7.2.
1306
+
1303
1307
.. _serializer-built-in-normalizers :
1304
1308
1305
1309
Serializer Normalizers
You can’t perform that action at this time.
0 commit comments