Skip to content

Commit d2fc031

Browse files
committed
[Cookbook] Update serializer.rst
Fix indentation of yaml example for service configuration and show best practice file locations
1 parent 87d6f1e commit d2fc031

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cookbook/serializer.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ Here is an example on how to load the
7474

7575
.. code-block:: yaml
7676
77-
# app/config/config.yml
78-
services:
79-
get_set_method_normalizer:
80-
class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
81-
tags:
82-
- { name: serializer.normalizer }
77+
# app/config/services.yml
78+
services:
79+
get_set_method_normalizer:
80+
class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
81+
tags:
82+
- { name: serializer.normalizer }
8383
8484
.. code-block:: xml
8585
86-
<!-- app/config/config.xml -->
86+
<!-- app/config/services.xml -->
8787
<services>
8888
<service id="get_set_method_normalizer" class="Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer">
8989
<tag name="serializer.normalizer" />
@@ -92,7 +92,7 @@ Here is an example on how to load the
9292
9393
.. code-block:: php
9494
95-
// app/config/config.php
95+
// app/config/services.php
9696
use Symfony\Component\DependencyInjection\Definition;
9797
9898
$definition = new Definition(

0 commit comments

Comments
 (0)