File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2724,6 +2724,19 @@ paths
2724
2724
This option allows to define an array of paths with files or directories where
2725
2725
the component will look for additional serialization files.
2726
2726
2727
+ default_context
2728
+ ...............
2729
+
2730
+ **type **: ``array `` **default **: ``[] ``
2731
+
2732
+ A map with default context options that will be used with each ``serialize `` and ``deserialize ``
2733
+ call. This can be used for example to set the json encoding behavior by setting ``json_encode_options ``
2734
+ to a `json_encode flags bitmask `_.
2735
+
2736
+ .. versionadded :: 5.4
2737
+
2738
+ The ``default_context `` parameter was introduced in Symfony 5.4.
2739
+
2727
2740
php_errors
2728
2741
~~~~~~~~~~
2729
2742
@@ -3554,6 +3567,7 @@ use the configuration of the first exception that matches ``instanceof``:
3554
3567
.. _`blue/green deployment` : https://martinfowler.com/bliki/BlueGreenDeployment.html
3555
3568
.. _`gulp-rev` : https://www.npmjs.com/package/gulp-rev
3556
3569
.. _`webpack-manifest-plugin` : https://www.npmjs.com/package/webpack-manifest-plugin
3570
+ .. _`json_encode flags bitmask` : https://www.php.net/json_encode
3557
3571
.. _`error_reporting PHP option` : https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
3558
3572
.. _`CSRF security attacks` : https://en.wikipedia.org/wiki/Cross-site_request_forgery
3559
3573
.. _`session.sid_length PHP option` : https://www.php.net/manual/session.configuration.php#ini.session.sid-length
You can’t perform that action at this time.
0 commit comments