Skip to content

Commit 255ef43

Browse files
committed
feature #6870 [Debug] Added configuration reference for new debug options (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
2 parents 0a22dda + 7ea70c8 commit 255ef43

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

reference/configuration/framework.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ Configuration
101101
* :ref:`cache <reference-serializer-cache>`
102102
* :ref:`enable_annotations <reference-serializer-enable_annotations>`
103103
* `name_converter`_
104+
* `php_errors`_
105+
* `log`_
106+
* `throw`_
104107

105108
secret
106109
~~~~~~
@@ -1430,6 +1433,30 @@ value.
14301433
For more information, see
14311434
:ref:`component-serializer-converting-property-names-when-serializing-and-deserializing`.
14321435

1436+
php_errors
1437+
~~~~~~~~~~
1438+
1439+
log
1440+
...
1441+
1442+
**type**: ``boolean`` **default**: ``false``
1443+
1444+
.. versionadded:: 3.2
1445+
The ``log`` option was introduced in Symfony 3.2.
1446+
1447+
Use the application logger instead of the PHP logger for logging PHP errors.
1448+
1449+
throw
1450+
.....
1451+
1452+
**type**: ``boolean`` **default**: ``%kernel.debug%``
1453+
1454+
.. versionadded:: 3.2
1455+
The ``throw`` option was introduced in Symfony 3.2.
1456+
1457+
Throw PHP errors as ``\ErrorException`` instances. The parameter
1458+
``debug.error_handler.throw_at`` controls the threshold.
1459+
14331460
Full Default Configuration
14341461
--------------------------
14351462

@@ -1564,6 +1591,11 @@ Full Default Configuration
15641591
file_cache_dir: '%kernel.cache_dir%/annotations'
15651592
debug: '%kernel.debug%'
15661593
1594+
# PHP errors handling configuration
1595+
php_errors:
1596+
log: false
1597+
throw: '%kernel.debug%'
1598+
15671599
.. _`HTTP Host header attacks`: http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
15681600
.. _`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
15691601
.. _`Doctrine Cache`: http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html

0 commit comments

Comments
 (0)