Skip to content

Document catch_all_throwables config #16918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .... option was introduced in Symfony 6.2.

The info for a new default value should not be part of the versionadded directive imho

Any idea @javiereguiluz

Maybe adding an additional versionchanged directive containing this info?

to opt-in to this behaviour now.

Make `:class:`Symfony\\Component\\HttpKernel\\HttpKernel`` catch every kind of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ticks arrangement looks wrong, but I am currently on a phone 📱

``\Throwable``. Leaving this option to false is deprecated.

csrf_protection
~~~~~~~~~~~~~~~

Expand Down