From 4d1678edd269495cb5d77967f4188ad2065f3979 Mon Sep 17 00:00:00 2001 From: Hugo Hamon Date: Tue, 12 May 2015 08:23:08 -0700 Subject: [PATCH] [Serializer] fixes the order of the Serializer constructor arguments. --- components/serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/serializer.rst b/components/serializer.rst index 37645d83f71..e86d828b315 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -224,7 +224,7 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`:: $nameConverter = new OrgPrefixNameConverter(); $normalizer = new PropertyNormalizer(null, $nameConverter); - $serializer = new Serializer(array(new JsonEncoder()), array($normalizer)); + $serializer = new Serializer(array($normalizer), array(new JsonEncoder())); $obj = new Company(); $obj->name = 'Acme Inc.';