Skip to content

Commit 124901d

Browse files
committed
[#2258] Revert "Fixed the serializer initialization for 2.0"
This reverts commit a38b44e. This change only applied to 2.0, the original docs were correct for 2.1+
1 parent e12cade commit 124901d

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
@@ -42,7 +42,7 @@ which Encoders and Normalizer are going to be available::
4242
use Symfony\Component\Serializer\Encoder\JsonEncoder;
4343
use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer;
4444

45-
$encoders = array('xml' => new XmlEncoder(), 'json' => new JsonEncoder());
45+
$encoders = array(new XmlEncoder(), new JsonEncoder());
4646
$normalizers = array(new GetSetMethodNormalizer());
4747

4848
$serializer = new Serializer($normalizers, $encoders);

0 commit comments

Comments
 (0)