Skip to content

Commit 80d0cdf

Browse files
committed
Made the config location paragraph a bit shorter
1 parent 8cffa78 commit 80d0cdf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cookbook/serializer.rst

+8-3
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,14 @@ to your class and choose which groups to use when serializing::
172172
'json', array('groups' => array('group1'))
173173
);
174174
175-
For those of you who don't like annotations, you can define serialization groups via XML or YAML files. The Serializer component will look for serialization.xml or serialization.yml files located in the Resources/config/ directory of your bundles. In addition, it will look for any XML or YAML file located inside the Resources/config/serialization/ directory.
176-
177-
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.
178183

179184
.. _cookbook-serializer-enabling-metadata-cache:
180185

0 commit comments

Comments
 (0)