File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ Configuration
26
26
* field_name
27
27
* `session `_
28
28
* `lifetime `_
29
+ * `serializer `_
30
+ * enabled
29
31
* `templating `_
30
32
* `assets_base_urls `_
31
33
* `assets_version `_
@@ -112,6 +114,23 @@ lifetime
112
114
This determines the lifetime of the session - in seconds. By default it will use
113
115
``0 ``, which means the cookie is valid for the length of the browser session.
114
116
117
+ serializer
118
+ ~~~~~~~~~~
119
+
120
+ enabled
121
+ .......
122
+
123
+ **type **: ``boolean `` **default **: ``false ``
124
+
125
+ Whether to enable or not the serializer service in the service container. If enabled,
126
+ the serializer will be loaded along with two encoders (:class: `Symfony\\ Component\\ Serializer\\ Encoder\\ JsonEncoder `
127
+ and :class: `Symfony\\ Component\\ Serializer\\ Encoder\\ XmlEncoder)
128
+ and one normalizer (:class:`Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer `).
129
+
130
+ You can add more normalizers and/or encoders by tagging them as `serializer.encoder ` and
131
+ `serializer.normalizer `. It's also possible to set the priority of the tag in order to decide the
132
+ matching order.
133
+
115
134
templating
116
135
~~~~~~~~~~
117
136
@@ -319,6 +338,10 @@ Full Default Configuration
319
338
# DEPRECATED! Please use: cookie_httponly
320
339
httponly : ~
321
340
341
+ # serializer configuration
342
+ serializer :
343
+ enabled : false
344
+
322
345
# templating configuration
323
346
templating :
324
347
assets_version : ~
You can’t perform that action at this time.
0 commit comments