Skip to content

Commit 1b4557c

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: document serializer default_context
2 parents 0446c44 + a385ac1 commit 1b4557c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

reference/configuration/framework.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,6 +2704,19 @@ paths
27042704
This option allows to define an array of paths with files or directories where
27052705
the component will look for additional serialization files.
27062706

2707+
default_context
2708+
...............
2709+
2710+
**type**: ``array`` **default**: ``[]``
2711+
2712+
A map with default context options that will be used with each ``serialize`` and ``deserialize``
2713+
call. This can be used for example to set the json encoding behavior by setting ``json_encode_options``
2714+
to a `json_encode flags bitmask`_.
2715+
2716+
.. versionadded:: 5.4
2717+
2718+
The ``default_context`` parameter was introduced in Symfony 5.4.
2719+
27072720
php_errors
27082721
~~~~~~~~~~
27092722

@@ -3457,6 +3470,7 @@ use the configuration of the first exception that matches ``instanceof``:
34573470
.. _`blue/green deployment`: https://martinfowler.com/bliki/BlueGreenDeployment.html
34583471
.. _`gulp-rev`: https://www.npmjs.com/package/gulp-rev
34593472
.. _`webpack-manifest-plugin`: https://www.npmjs.com/package/webpack-manifest-plugin
3473+
.. _`json_encode flags bitmask`: https://www.php.net/json_encode
34603474
.. _`error_reporting PHP option`: https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
34613475
.. _`CSRF security attacks`: https://en.wikipedia.org/wiki/Cross-site_request_forgery
34623476
.. _`session.sid_length PHP option`: https://www.php.net/manual/session.configuration.php#ini.session.sid-length

0 commit comments

Comments
 (0)