Skip to content

Commit 2d93c37

Browse files
issamkhadiri1989javiereguiluz
authored andcommitted
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 5cea89e commit 2d93c37

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
@@ -1722,7 +1722,7 @@ context option::
17221722
}
17231723
}
17241724

1725-
$normalizer = new ObjectNormalizer($classMetadataFactory);
1725+
$normalizer = new ObjectNormalizer();
17261726
$serializer = new Serializer([$normalizer]);
17271727

17281728
$data = $serializer->denormalize(

0 commit comments

Comments
 (0)