Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c01bc53

Browse filesBrowse files
committed
Update reference/configuration/framework.rst
This PR is related to this one symfony/symfony#5347.
1 parent b9f7412 commit c01bc53
Copy full SHA for c01bc53

File tree

Expand file treeCollapse file tree

1 file changed

+23
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+23
-0
lines changed

‎reference/configuration/framework.rst

Copy file name to clipboardExpand all lines: reference/configuration/framework.rst
+23Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Configuration
2626
* field_name
2727
* `session`_
2828
* `lifetime`_
29+
* `serializer`_
30+
* enabled
2931
* `templating`_
3032
* `assets_base_urls`_
3133
* `assets_version`_
@@ -112,6 +114,23 @@ lifetime
112114
This determines the lifetime of the session - in seconds. By default it will use
113115
``0``, which means the cookie is valid for the length of the browser session.
114116

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+
115134
templating
116135
~~~~~~~~~~
117136

@@ -319,6 +338,10 @@ Full Default Configuration
319338
# DEPRECATED! Please use: cookie_httponly
320339
httponly: ~
321340
341+
# serializer configuration
342+
serializer:
343+
enabled: false
344+
322345
# templating configuration
323346
templating:
324347
assets_version: ~

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.