Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d007da2

Browse filesBrowse files
committed
Add new serializer config path
1 parent 66bb046 commit d007da2
Copy full SHA for d007da2

File tree

Expand file treeCollapse file tree

1 file changed

+9
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-9
lines changed

‎serializer.rst

Copy file name to clipboardExpand all lines: serializer.rst
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ it in your configuration:
2222

2323
.. code-block:: yaml
2424
25-
# config/packages/framework.yaml
25+
# config/packages/serializer.yaml
2626
framework:
2727
# ...
2828
serializer: { enable_annotations: true }
@@ -31,7 +31,7 @@ it in your configuration:
3131
3232
.. code-block:: xml
3333
34-
<!-- config/packages/framework.xml -->
34+
<!-- config/packages/serializer.xml -->
3535
<?xml version="1.0" encoding="UTF-8"?>
3636
<container xmlns="http://symfony.com/schema/dic/services"
3737
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -52,7 +52,7 @@ it in your configuration:
5252
5353
.. code-block:: php
5454
55-
// config/packages/framework.php
55+
// config/packages/serializer.php
5656
$container->loadFromExtension('framework', array(
5757
// ...
5858
'serializer' => array(
@@ -150,15 +150,15 @@ with the following configuration:
150150

151151
.. code-block:: yaml
152152
153-
# config/packages/framework.yaml
153+
# config/packages/serializer.yaml
154154
framework:
155155
# ...
156156
serializer:
157157
enable_annotations: true
158158
159159
.. code-block:: xml
160160
161-
<!-- config/packages/framework.xml -->
161+
<!-- config/packages/serializer.xml -->
162162
<?xml version="1.0" encoding="UTF-8"?>
163163
<container xmlns="http://symfony.com/schema/dic/services"
164164
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -176,7 +176,7 @@ with the following configuration:
176176
177177
.. code-block:: php
178178
179-
// config/packages/framework.php
179+
// config/packages/serializer.php
180180
$container->loadFromExtension('framework', array(
181181
// ...
182182
'serializer' => array(
@@ -196,10 +196,10 @@ In addition to the ``@Groups`` annotation, the Serializer component also
196196
supports Yaml or XML files. These files are automatically loaded when being
197197
stored in one of the following locations:
198198

199-
* The ``serialization.yml`` or ``serialization.xml`` file in
199+
* The ``serialization.yaml`` or ``serialization.xml`` file in
200200
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.
203203

204204
.. _serializer-enabling-metadata-cache:
205205

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.