From 83e366a58e50428c78cabc4ec9adaed33621ae3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Kami=C5=84ski?= Date: Thu, 19 May 2022 22:11:47 +0200 Subject: [PATCH] [FrameworkBundle][HttpKernel] Document `collect_parameter` --- reference/configuration/framework.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 ...............