diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 53913ea2432..1fe35063c99 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -101,6 +101,9 @@ Configuration * :ref:`cache ` * :ref:`enable_annotations ` * `name_converter`_ +* `php_errors`_ + * `log`_ + * `throw`_ secret ~~~~~~ @@ -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 -------------------------- @@ -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