We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ace3104 + 80d0cdf commit 766edd6Copy full SHA for 766edd6
cookbook/serializer.rst
@@ -171,6 +171,15 @@ to your class and choose which groups to use when serializing::
171
$someObject,
172
'json', array('groups' => array('group1'))
173
);
174
+
175
+In addition to the ``@Groups`` annotation, the Serializer component also
176
+supports Yaml or XML files. These files are automatically loaded when being
177
+stored in one of the following locations:
178
179
+ * The ``serialization.yml`` or ``serialization.xml`` file in
180
+ the ``Resources/config/`` directory of a bundle;
181
+ * All ``*.yml`` and ``*.xml`` files in the ``Resources/config/serialization/``
182
+ directory of a bundle.
183
184
.. _cookbook-serializer-enabling-metadata-cache:
185
0 commit comments