diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index d5ee18b0e1a..821db52837f 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -1298,6 +1298,24 @@ activate the data collectors manually:: $profiler->enable(); +collect_parameter +................. + +**type**: ``string`` **default**: ``null`` + +This specifies name of query parameter, body parameter or a request attribute +that can be used to enable or disable collection of data by the profiler +individually for each request. If ``collect`` flag is set to ``true``, +but the parameter exists in a request and has any value other than ``true``, +``yes``, ``on`` or ``1``, the request data will not be collected. +If ``collect`` flag is set to ``false``, but the parameter exists in a request +and has value of ``true``, ``yes``, ``on`` or ``1``, +the request data will be collected. + +.. versionadded:: 5.4 + + The `collect_parameter` was introduced in Symfony 5.4. + only_exceptions ...............