File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,11 @@ Adding Normalizers and Encoders
90
90
-------------------------------
91
91
92
92
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
96
98
:ref: `ObjectNormalizer normalizer <component-serializer-normalizers >`.
97
99
98
100
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::
178
180
$someObject,
179
181
'json', array('groups' => array('group1'))
180
182
);
181
-
183
+
182
184
In addition to the ``@Groups `` annotation, the Serializer component also
183
185
supports Yaml or XML files. These files are automatically loaded when being
184
186
stored in one of the following locations:
You can’t perform that action at this time.
0 commit comments