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:
29
29
# app/config/config.yml
30
30
framework :
31
31
# ...
32
- serializer :
33
- enabled : true
32
+ serializer : { enable_annotations: true }
33
+ # Alternatively, if you don't want to use annotations
34
+ # serializer: { enabled: true }
34
35
35
36
.. code-block :: xml
36
37
37
38
<!-- app/config/config.xml -->
38
39
<framework : config >
39
40
<!-- ... -->
40
41
<framework : serializer enabled =" true" />
42
+ <!--
43
+ Alternatively, if you don't want to use annotations
44
+ <framework:serializer enable-annotations="true" />
45
+ -->
41
46
</framework : config >
42
47
43
48
.. code-block :: php
@@ -46,6 +51,8 @@ it in your configuration:
46
51
$container->loadFromExtension('framework', array(
47
52
// ...
48
53
'serializer' => array(
54
+ 'enable_annotations' => true,
55
+ // Alternatively, if you don't want to use annotations
49
56
'enabled' => true,
50
57
),
51
58
));
You can’t perform that action at this time.
0 commit comments