Skip to content

Commit 34246ef

Browse files
committed
minor #7631 [Serializer] Added missing encoders (lyrixx)
This PR was merged into the 3.2 branch. Discussion ---------- [Serializer] Added missing encoders Commits ------- 3ca68b9 [Serializer] Added missing encoders
2 parents ce09aa0 + 3ca68b9 commit 34246ef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

serializer.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ Adding Normalizers and Encoders
9090
-------------------------------
9191

9292
Once enabled, the ``serializer`` service will be available in the container
93-
and will be loaded with two :ref:`encoders <component-serializer-encoders>`
94-
(:class:`Symfony\\Component\\Serializer\\Encoder\\JsonEncoder` and
95-
:class:`Symfony\\Component\\Serializer\\Encoder\\XmlEncoder`) and the
93+
and will be loaded with four :ref:`encoders <component-serializer-encoders>`
94+
(:class:`Symfony\\Component\\Serializer\\Encoder\\JsonEncoder`,
95+
:class:`Symfony\\Component\\Serializer\\Encoder\\XmlEncoder`,
96+
:class:`Symfony\\Component\\Serializer\\Encoder\\YamlEncoder`, and
97+
:class:`Symfony\\Component\\Serializer\\Encoder\\CsvEncoder`) and the
9698
:ref:`ObjectNormalizer normalizer <component-serializer-normalizers>`.
9799

98100
You can load normalizers and/or encoders by tagging them as
@@ -178,7 +180,7 @@ to your class and choose which groups to use when serializing::
178180
$someObject,
179181
'json', array('groups' => array('group1'))
180182
);
181-
183+
182184
In addition to the ``@Groups`` annotation, the Serializer component also
183185
supports Yaml or XML files. These files are automatically loaded when being
184186
stored in one of the following locations:

0 commit comments

Comments
 (0)