8000 minor #20201 [Serializer] Add the yaml and xml config folders (lkolnd… · symfony/symfony-docs@eb71656 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb71656

Browse files
committed
minor #20201 [Serializer] Add the yaml and xml config folders (lkolndeep)
This PR was merged into the 5.4 branch. Discussion ---------- [Serializer] Add the yaml and xml config folders Add the yaml and xml configuration folders for the example. Commits ------- 39878b8 Add the yaml and xml config folders
2 parents 3d6aeb9 + 39878b8 commit eb71656

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

serializer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ You can also specify the context on a per-property basis::
209209
210210
.. code-block:: yaml
211211
212+
# config/serializer/custom_config.yaml
212213
App\Model\Person:
213214
attributes:
214215
createdAt:
@@ -218,6 +219,7 @@ You can also specify the context on a per-property basis::
218219
.. code-block:: xml
219220
220221
<?xml version="1.0" encoding="UTF-8" ?>
222+
<!-- config/serializer/custom_config.xml -->
221223
<serializer xmlns="http://symfony.com/schema/dic/serializer-mapping"
222224
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
223225
xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping

0 commit comments

Comments
 (0)
0