Skip to content

Commit f5768f3

Browse files
Update serializer.rst
Hello I think it is not necessary to add a ClassMetadataFactory here because we are not about to use Class Metadata, Without that argument, the example works well too
1 parent 5c6a13a commit f5768f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ context option::
15741574
}
15751575
}
15761576

1577-
$normalizer = new ObjectNormalizer($classMetadataFactory);
1577+
$normalizer = new ObjectNormalizer();
15781578
$serializer = new Serializer([$normalizer]);
15791579

15801580
$data = $serializer->denormalize(

0 commit comments

Comments
 (0)