From 2d93c37b2f67cbbc6d7ea6c4fcf6ec48fcc1c0e7 Mon Sep 17 00:00:00 2001 From: Issam KHADIRI Date: Mon, 4 Apr 2022 00:02:38 +0200 Subject: [PATCH] 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 --- components/serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/serializer.rst b/components/serializer.rst index fb9b06e8362..0e891cc961c 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -1722,7 +1722,7 @@ context option:: } } - $normalizer = new ObjectNormalizer($classMetadataFactory); + $normalizer = new ObjectNormalizer(); $serializer = new Serializer([$normalizer]); $data = $serializer->denormalize(