Skip to content
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

[Debug] Added configuration reference for new debug options #6870

Merged
merged 1 commit into from
Oct 6, 2016
Merged
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
32 changes: 32 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ Configuration
* :ref:`cache <reference-serializer-cache>`
* :ref:`enable_annotations <reference-serializer-enable_annotations>`
* `name_converter`_
* `php_errors`_
* `log`_
* `throw`_

secret
~~~~~~
Expand Down Expand Up @@ -1433,6 +1436,30 @@ value.
For more information, see
:ref:`component-serializer-converting-property-names-when-serializing-and-deserializing`.

php_errors
~~~~~~~~~~

log
...

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

.. versionadded:: 3.2
The ``log`` option was introduced in Symfony 3.2.

Use the application logger instead of the PHP logger for logging PHP errors.

throw
.....

**type**: ``boolean`` **default**: ``%kernel.debug%``

.. versionadded:: 3.2
The ``throw`` option was introduced in Symfony 3.2.

Throw PHP errors as ``\ErrorException`` instances. The parameter
``debug.error_handler.throw_at`` controls the threshold.

Full Default Configuration
--------------------------

Expand Down Expand Up @@ -1567,6 +1594,11 @@ Full Default Configuration
file_cache_dir: '%kernel.cache_dir%/annotations'
debug: '%kernel.debug%'

# PHP errors handling configuration
php_errors:
log: false
throw: '%kernel.debug%'

.. _`HTTP Host header attacks`: http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
.. _`Security Advisory Blog post`: https://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released#cve-2013-4752-request-gethost-poisoning
.. _`Doctrine Cache`: http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html
Expand Down