@@ -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
105108secret
106109~~~~~~
@@ -1433,6 +1436,30 @@ 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+ .. versionadded :: 3.2
1448+ The ``log `` option was introduced in Symfony 3.2.
1449+
1450+ Use the application logger instead of the PHP logger for logging PHP errors.
1451+
1452+ throw
1453+ .....
1454+
1455+ **type **: ``boolean `` **default **: ``%kernel.debug% ``
1456+
1457+ .. versionadded :: 3.2
1458+ The ``throw `` option was introduced in Symfony 3.2.
1459+
1460+ Throw PHP errors as ``\ErrorException `` instances. The parameter
1461+ ``debug.error_handler.throw_at `` controls the threshold.
1462+
14361463Full Default Configuration
14371464--------------------------
14381465
@@ -1567,6 +1594,11 @@ Full Default Configuration
15671594 file_cache_dir : ' %kernel.cache_dir%/annotations'
15681595 debug : ' %kernel.debug%'
15691596
1597+ # PHP errors handling configuration
1598+ php_errors :
1599+ log : false
1600+ throw : ' %kernel.debug%'
1601+
15701602 .. _`HTTP Host header attacks` : http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
15711603.. _`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
15721604.. _`Doctrine Cache` : http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html
0 commit comments