File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1298,6 +1298,24 @@ activate the data collectors manually::
1298
1298
1299
1299
$profiler->enable();
1300
1300
1301
+ collect_parameter
1302
+ .................
1303
+
1304
+ **type **: ``string `` **default **: ``null ``
1305
+
1306
+ This specifies name of query parameter, body parameter or a request attribute
1307
+ that can be used to enable or disable collection of data by the profiler
1308
+ individually for each request. If ``collect `` flag is set to ``true ``,
1309
+ but the parameter exists in a request and has any value other than ``true ``,
1310
+ ``yes ``, ``on `` or ``1 ``, 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 ``,
1313
+ the request data will be collected.
1314
+
1315
+ .. versionadded :: 5.4
1316
+
1317
+ The `collect_parameter ` was introduced in Symfony 5.4.
1318
+
1301
1319
only_exceptions
1302
1320
...............
1303
1321
You can’t perform that action at this time.
0 commit comments