8000 Update framework config by StevenRenaux · Pull Request #18773 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Update framework config #18773

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 12 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 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
27 changes: 11 additions & 16 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@ out all the application users.
handle_all_throwables
~~~~~~~~~~~~~~~~~~~~~

**type**: ``boolean`` **default**: ``false``
**type**: ``boolean`` **default**: ``true``

If set to ``true``, the Symfony kernel will catch all ``\Throwable`` exceptions
Set to ``true``, the Symfony kernel will catch all ``\Throwable`` exceptions
thrown by the application and will turn them into HTTP responses.

Starting from Symfony 7.0, the default value of this option will be ``true``.

.. versionadded:: 6.2

The ``handle_all_throwables`` option was introduced in Symfony 6.2.
Expand Down Expand Up @@ -1641,11 +1639,13 @@ To see a list of all available storages, run:
handler_id
..........

**type**: ``string`` **default**: ``session.handler.native_file``
**type**: ``string`` or ``null`` **default**: ``null``

By default at `null` if `framework.session.save_path` is not set.
The session handler configured by php.ini is used, unless option
`framework.session.save_path` is used, in which case the default is to store sessions
using the native file session handler.

The service id or DSN used for session storage. The default value ``'session.handler.native_file'``
will let Symfony manage the sessions itself using files to store the session metadata.
Set it to ``null`` to use the native PHP session mechanism.
It is possible to :ref:`store sessions in a database <session-database>`,
and also to configure the session handler with a DSN:

Expand Down Expand Up @@ -1901,7 +1901,7 @@ This option is related to the `session.sid_bits_per_character PHP option`_.
save_path
.........

**type**: ``string`` **default**: ``%kernel.cache_dir%/sessions``
**type**: ``string`` or ``null`` **default**: ``%kernel.cache_dir%/sessions``

This determines the argument to be passed to the save handler. If you choose
the default file handler, this is the path where the session files are created.
Expand Down Expand Up @@ -2816,12 +2816,7 @@ constraint verifies the submitted string entropy is matching the minimum entropy
email_validation_mode
.....................

**type**: ``string`` **default**: ``loose``

.. deprecated:: 6.2

The ``loose`` default value is deprecated since Symfony 6.2. Starting from
Symfony 7.0, the default value of this option will be ``html5``.
**type**: ``string`` **default**: ``html5``

Sets the default value for the
:ref:`"mode" option of the Email validator <reference-constraint-email-mode>`.
Expand Down Expand Up @@ -3026,7 +3021,7 @@ php_errors
log
...

**type**: ``boolean|int`` **default**: ``%kernel.debug%``
**type**: ``boolean|int`` **default**: ``true``

Use the application logger instead of the PHP logger for logging PHP errors.
When an integer value is used, it also sets the log level. Those integer
Expand Down
8 changes: 0 additions & 8 deletions reference/constraints/Email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ Parameter Description

This option defines the pattern used to validate the email address. Valid values are:

* ``loose`` uses a simple regular expression (just checks that at least one ``@``
character is present, etc.). This validation is too simple and it's recommended
to use one of the other modes instead;
* ``html5`` uses the regular expression of the `HTML5 email input element`_,
except it enforces a tld to be present.
* ``html5-allow-no-tld`` uses exactly the same regular expression as the `HTML5 email input element`_,
Expand All @@ -133,11 +130,6 @@ The default value used by this option is set in the
:ref:`framework.validation.email_validation_mode <reference-validation-email_validation_mode>`
configuration option.

.. deprecated:: 6.2

The ``loose`` value is deprecated since Symfony 6.2. Starting from
Symfony 7.0, the default value of this option will be ``html5``.

.. include:: /reference/constraints/_normalizer-option.rst.inc

.. include:: /reference/constraints/_payload-option.rst.inc
Expand Down
0