@@ -22,7 +22,7 @@ it in your configuration:
22
22
23
23
.. code-block :: yaml
24
24
25
- # config/packages/framework .yaml
25
+ # config/packages/serializer .yaml
26
26
framework :
27
27
# ...
28
28
serializer : { enable_annotations: true }
@@ -31,7 +31,7 @@ it in your configuration:
31
31
32
32
.. code-block :: xml
33
33
34
- <!-- config/packages/framework .xml -->
34
+ <!-- config/packages/serializer .xml -->
35
35
<?xml version =" 1.0" encoding =" UTF-8" ?>
36
36
<container xmlns =" http://symfony.com/schema/dic/services"
37
37
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -52,7 +52,7 @@ it in your configuration:
52
52
53
53
.. code-block :: php
54
54
55
- // config/packages/framework .php
55
+ // config/packages/serializer .php
56
56
$container->loadFromExtension('framework', array(
57
57
// ...
58
58
'serializer' => array(
@@ -150,15 +150,15 @@ with the following configuration:
150
150
151
151
.. code-block :: yaml
152
152
153
- # config/packages/framework .yaml
153
+ # config/packages/serializer .yaml
154
154
framework :
155
155
# ...
156
156
serializer :
157
157
enable_annotations : true
158
158
159
159
.. code-block :: xml
160
160
161
- <!-- config/packages/framework .xml -->
161
+ <!-- config/packages/serializer .xml -->
162
162
<?xml version =" 1.0" encoding =" UTF-8" ?>
163
163
<container xmlns =" http://symfony.com/schema/dic/services"
164
164
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -176,7 +176,7 @@ with the following configuration:
176
176
177
177
.. code-block :: php
178
178
179
- // config/packages/framework .php
179
+ // config/packages/serializer .php
180
180
$container->loadFromExtension('framework', array(
181
181
// ...
182
182
'serializer' => array(
@@ -196,10 +196,10 @@ In addition to the ``@Groups`` annotation, the Serializer component also
196
196
supports Yaml or XML files. These files are automatically loaded when being
197
197
stored in one of the following locations:
198
198
199
- * The ``serialization.yml `` or ``serialization.xml `` file in
199
+ * The ``serialization.yaml `` or ``serialization.xml `` file in
200
200
the ``Resources/config/ `` directory of a bundle;
201
- * All ``*.yml `` and ``*.xml `` files in the ``Resources/config/serialization/ ``
202
- directory of a bundle.
201
+ * All ``*.yaml `` and ``*.xml `` files in the ``Resources/config/serialization/ ``
202
+ directory of a bundle and in the `` config/serializer/ `` directory of your project .
203
203
204
204
.. _serializer-enabling-metadata-cache :
205
205
0 commit comments