File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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 <!-- ... -->
4041 <framework : serializer enabled =" true" />
42+ <!--
43+ Alternatively, if you don't want to use annotations
44+ <framework:serializer enable-annotations="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 ));
You can’t perform that action at this time.
0 commit comments