From a88e75b6cee9eef8c14d3fa762f54ed71e7a2790 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Sat, 25 Jun 2022 13:44:01 +0200 Subject: [PATCH] Docuent catch_all_throwables config --- reference/configuration/framework.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 7dabd6887c9..90d8ab9c649 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -549,6 +549,19 @@ This is the field name that you should give to the CSRF token field of your form .. _reference-framework-csrf-protection: +catch_all_throwables +~~~~~~~~~~~~~~~~~~~~ + +**type**: ``boolean`` **default**: ``false`` + +.. versionadded:: 6.2 + + Symfony 7.0 will catch all Throwables by default. Use ``framework.catch_all_throwables`` + to opt-in to this behaviour now. + +Make `:class:`Symfony\\Component\\HttpKernel\\HttpKernel`` catch every kind of +``\Throwable``. Leaving this option to false is deprecated. + csrf_protection ~~~~~~~~~~~~~~~