10000 [Debug] Added configuration reference for new debug options · symfony/symfony-docs@cc5c089 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc5c089

Browse files
committed
[Debug] Added configuration reference for new debug options
1 parent a7f704c commit cc5c089

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

reference/configuration/framework.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ Configuration
103103
* :ref:`cache <reference-serializer-cache>`
104104
* :ref:`enable_annotations <reference-serializer-enable_annotations>`
105105
* `name_converter`_
106+
* `php_errors`_
107+
* `log`_
108+
* `throw`_
106109

107110
secret
108111
~~~~~~
@@ -1433,6 +1436,24 @@ value.
14331436
For more information, see
14341437
:ref:`component-serializer-converting-property-names-when-serializing-and-deserializing`.
14351438

1439+
php_errors
1440+
~~~~~~~~~~
1441+
1442+
log
1443+
...
1444+
1445+
**type**: ``boolean`` **default**: ``false``
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+
Throw PHP errors as ``\ErrorException`` instances. The parameter
1455+
``debug.error_handler.throw_at`` control the threshold.
1456+
14361457
Full Default Configuration
14371458
--------------------------
14381459

@@ -1569,6 +1590,11 @@ Full Default Configuration
15691590
file_cache_dir: '%kernel.cache_dir%/annotations'
15701591
debug: '%kernel.debug%'
15711592
1593+
# PHP errors handling configuration
1594+
php_errors:
1595+
log: false
1596+
throw: '%kernel.debug%'
1597+
15721598
.. _`HTTP Host header attacks`: http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
15731599
.. _`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
15741600
.. _`Doctrine Cache`: http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html

0 commit comments

Comments
 (0)
0