Skip to content

Commit 3161ed8

Browse files
[FrameworkBundle][HttpKernel] Document collect_parameter
1 parent 2e4bc20 commit 3161ed8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/configuration/framework.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,19 @@ activate the data collectors manually::
12981298

12991299
$profiler->enable();
13001300

1301+
collect_parameter
1302+
.................
1303+
1304+
**type**: ``string`` **default**: ``null``
1305+
1306+
This option allows to enable or disable the profiler on a per request basis
1307+
using a query parameter, body parameter or a request attribute with the given name.
1308+
If ``collect`` flag is set to ``true``, but the parameter exists in a request
1309+
and has any value other than ``true``, ``yes``, ``on`` or ``1``,
1310+
the request data will not be collected.
1311+
If ``collect`` flag is set to ``false``, but the parameter exists in a request
1312+
and has value of ``true``, ``yes``, ``on`` or ``1``, the request data will be collected.
1313+
13011314
only_exceptions
13021315
...............
13031316

0 commit comments

Comments
 (0)