Skip to content

Commit 1056528

Browse files
committed
Tweaks
1 parent a53b26e commit 1056528

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

serializer.rst

+8-4
Original file line numberDiff line numberDiff 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

12481248
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
12511251
setting 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

13051309
Serializer Normalizers

0 commit comments

Comments
 (0)