From dcb2845301e99100f7a6e3625e99b7f72e2baa01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 14 Feb 2017 16:16:31 +0100 Subject: [PATCH] [Serializer] Enable annotations by default --- serializer.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/serializer.rst b/serializer.rst index 3258e7d62a4..67116b9ca68 100644 --- a/serializer.rst +++ b/serializer.rst @@ -29,15 +29,20 @@ it in your configuration: # app/config/config.yml framework: # ... - serializer: - enabled: true + serializer: { enable_annotations: true } + # Alternatively, if you don't want to use annotations + #serializer: { enabled: true } .. code-block:: xml + + .. code-block:: php @@ -46,6 +51,8 @@ it in your configuration: $container->loadFromExtension('framework', array( // ... 'serializer' => array( + 'enable_annotations' => true, + // Alternatively, if you don't want to use annotations 'enabled' => true, ), ));