File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 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
12421242 snake_case to CamelCase
12431243~~~~~~~~~~~~~~~~~~~~~~~
12441244
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.
12471247
12481248Symfony 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
12511251setting the ``name_converter `` setting to
12521252``serializer.name_converter.snake_case_to_camel_case ``:
12531253
@@ -1300,6 +1300,10 @@ setting the ``name_converter`` setting to
13001300 ];
13011301 $serializer = new Serializer($normalizers, $encoders);
13021302
1303+ .. versionadded :: 7.2
1304+
1305+ The snake_case to CamelCase converter was introduced in Symfony 7.2.
1306+
13031307.. _serializer-built-in-normalizers :
13041308
13051309Serializer Normalizers
You can’t perform that action at this time.
0 commit comments