From d2fc0314a0251f54d3ee5d3ad858d11aa4e8df37 Mon Sep 17 00:00:00 2001 From: Alexander Schwenn Date: Mon, 6 Apr 2015 02:18:43 +0200 Subject: [PATCH] [Cookbook] Update serializer.rst Fix indentation of yaml example for service configuration and show best practice file locations --- cookbook/serializer.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cookbook/serializer.rst b/cookbook/serializer.rst index 762a0f86d19..4c658d90aa6 100644 --- a/cookbook/serializer.rst +++ b/cookbook/serializer.rst @@ -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 - + @@ -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(