Skip to content

Commit d47ea71

Browse files
committed
minor #16683 [Serializer] Update serializer.rst (issamkhadiri1989)
This PR was submitted for the 6.0 branch but it was merged into the 6.4 branch instead. Discussion ---------- [Serializer] 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 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 2d93c37 Update serializer.rst
2 parents 5cea89e + 2d93c37 commit d47ea71

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)