Skip to content

Commit bf1e44b

Browse files
committed
minor #5150 [Cookbook] Update serializer.rst (xelaris)
This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook] Update serializer.rst | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ | Fixed tickets | Fix indentation of yaml example for service configuration (from 3 to 4 spaces) and show best practice file locations Commits ------- d2fc031 [Cookbook] Update serializer.rst
2 parents 2a1d2bb + d2fc031 commit bf1e44b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cookbook/serializer.rst

+8-8
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)