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 @@ -2836,6 +2836,19 @@ paths
2836
2836
This option allows to define an array of paths with files or directories where
2837
2837
the component will look for additional serialization files.
2838
2838
2839
+ default_context
2840
+ ...............
2841
+
2842
+ **type **: ``array `` **default **: ``[] ``
2843
+
2844
+ A map with default context options that will be used with each ``serialize `` and ``deserialize ``
2845
+ call. This can be used for example to set the json encoding behavior by setting ``json_encode_options ``
2846
+ to a `json_encode flags bitmask `_.
2847
+
2848
+ .. versionadded :: 5.4
2849
+
2850
+ The ``default_context `` parameter was introduced in Symfony 5.4.
2851
+
2839
2852
php_errors
2840
2853
~~~~~~~~~~
2841
2854
@@ -3612,6 +3625,7 @@ use the configuration of the first exception that matches ``instanceof``:
3612
3625
.. _`blue/green deployment` : https://martinfowler.com/bliki/BlueGreenDeployment.html
3613
3626
.. _`gulp-rev` : https://www.npmjs.com/package/gulp-rev
3614
3627
.. _`webpack-manifest-plugin` : https://www.npmjs.com/package/webpack-manifest-plugin
3628
+ .. _`json_encode flags bitmask` : https://www.php.net/json_encode
3615
3629
.. _`error_reporting PHP option` : https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
3616
3630
.. _`CSRF security attacks` : https://en.wikipedia.org/wiki/Cross-site_request_forgery
3617
3631
.. _`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