Skip to content

Commit dcb2845

Browse files
committed
[Serializer] Enable annotations by default
1 parent 0607517 commit dcb2845

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

serializer.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,20 @@ it in your configuration:
2929
# app/config/config.yml
3030
framework:
3131
# ...
32-
serializer:
33-
enabled: true
32+
serializer: { enable_annotations: true }
33+
# Alternatively, if you don't want to use annotations
34+
#serializer: { enabled: true }
3435
3536
.. code-block:: xml
3637
3738
<!-- app/config/config.xml -->
3839
<framework:config>
3940
<!-- ... -->
41+
<framework:serializer enable-annotations="true" />
42+
<!--
43+
Alternatively, if you don't want to use annotations
4044
<framework:serializer enabled="true" />
45+
-->
4146
</framework:config>
4247
4348
.. code-block:: php
@@ -46,6 +51,8 @@ it in your configuration:
4651
$container->loadFromExtension('framework', array(
4752
// ...
4853
'serializer' => array(
54+
'enable_annotations' => true,
55+
// Alternatively, if you don't want to use annotations
4956
'enabled' => true,
5057
),
5158
));

0 commit comments

Comments
 (0)