Skip to content

Commit

Permalink
feature #6870 [Debug] Added configuration reference for new debug opt…
Browse files Browse the repository at this point in the history
…ions (lyrixx)

This PR was merged into the master branch.

Discussion
----------

[Debug] Added configuration reference for new debug options

Commits
-------

7ea70c8 [Debug] Added configuration reference for new debug options
  • Loading branch information
wouterj committed Oct 6, 2016
2 parents 0a22dda + 7ea70c8 commit 255ef43
Showing 1 changed file with 32 additions and 0 deletions.
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 @@ -1430,6 +1433,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 @@ -1564,6 +1591,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

0 comments on commit 255ef43

Please sign in to comment.