Skip to content

Commit

Permalink
[Serializer] fixes the order of the Serializer constructor arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Hamon committed May 12, 2015
1 parent 164ce27 commit 4d1678e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
Expand Down

0 comments on commit 4d1678e

Please sign in to comment.