File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1245,6 +1245,26 @@ activate the data collectors manually::
12451245
12461246 $profiler->enable();
12471247
1248+ collect_parameter
1249+ .................
1250+
1251+ **type **: ``string `` **default **: ``null ``
1252+
1253+ This specifies name of a query parameter, a body parameter or a request attribute
1254+ used to enable or disable collection of data by the profiler for each request.
1255+ Combine it with the ``collect `` option to enable/disable the profiler on demand:
1256+
1257+ * If the ``collect `` option is set to ``true `` but this parameter exists in a
1258+ request and has any value other than ``true ``, ``yes ``, ``on `` or ``1 ``, the
1259+ request data will not be collected;
1260+ * If the ``collect `` option is set to ``false ``, but this parameter exists in a
1261+ request and has value of ``true ``, ``yes ``, ``on `` or ``1 ``, the request data
1262+ will be collected.
1263+
1264+ .. versionadded :: 5.4
1265+
1266+ The ``collect_parameter `` option was introduced in Symfony 5.4.
1267+
12481268only_exceptions
12491269...............
12501270
You can’t perform that action at this time.
0 commit comments