Skip to content

Commit

Permalink
minor #5150 [Cookbook] Update serializer.rst (xelaris)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wouterj committed Apr 7, 2015
2 parents 2a1d2bb + d2fc031 commit bf1e44b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cookbook/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ Here is an example on how to load the

.. code-block:: yaml
# app/config/config.yml
services:
get_set_method_normalizer:
class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
tags:
- { name: serializer.normalizer }
# app/config/services.yml
services:
get_set_method_normalizer:
class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
tags:
- { name: serializer.normalizer }
.. code-block:: xml
<!-- app/config/config.xml -->
<!-- app/config/services.xml -->
<services>
<service id="get_set_method_normalizer" class="Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer">
<tag name="serializer.normalizer" />
Expand All @@ -92,7 +92,7 @@ Here is an example on how to load the
.. code-block:: php
// app/config/config.php
// app/config/services.php
use Symfony\Component\DependencyInjection\Definition;
$definition = new Definition(
Expand Down

0 comments on commit bf1e44b

Please sign in to comment.