From 3ca68b9190cb42a7e9fdfde9786eb1e02bd0f3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Wed, 15 Mar 2017 16:42:41 +0100 Subject: [PATCH] [Serializer] Added missing encoders --- serializer.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/serializer.rst b/serializer.rst index bdd344a1f9b..c6187171af5 100644 --- a/serializer.rst +++ b/serializer.rst @@ -90,9 +90,11 @@ Adding Normalizers and Encoders ------------------------------- Once enabled, the ``serializer`` service will be available in the container -and will be loaded with two :ref:`encoders ` -(:class:`Symfony\\Component\\Serializer\\Encoder\\JsonEncoder` and -:class:`Symfony\\Component\\Serializer\\Encoder\\XmlEncoder`) and the +and will be loaded with four :ref:`encoders ` +(:class:`Symfony\\Component\\Serializer\\Encoder\\JsonEncoder`, +:class:`Symfony\\Component\\Serializer\\Encoder\\XmlEncoder`, +:class:`Symfony\\Component\\Serializer\\Encoder\\YamlEncoder`, and +:class:`Symfony\\Component\\Serializer\\Encoder\\CsvEncoder`) and the :ref:`ObjectNormalizer normalizer `. 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:: $someObject, 'json', array('groups' => array('group1')) ); - + In addition to the ``@Groups`` annotation, the Serializer component also supports Yaml or XML files. These files are automatically loaded when being stored in one of the following locations: