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 ~~~~~~~~~~~~~~~