@@ -1312,18 +1312,20 @@ collect_parameter
13121312
13131313**type **: ``string `` **default **: ``null ``
13141314
1315- This specifies name of query parameter, body parameter or a request attribute
1316- that can be used to enable or disable collection of data by the profiler
1317- individually for each request. If ``collect `` flag is set to ``true ``,
1318- but the parameter exists in a request and has any value other than ``true ``,
1319- ``yes ``, ``on `` or ``1 ``, the request data will not be collected.
1320- If ``collect `` flag is set to ``false ``, but the parameter exists in a request
1321- and has value of ``true ``, ``yes ``, ``on `` or ``1 ``,
1322- the request data will be collected.
1315+ This specifies name of a query parameter, a body parameter or a request attribute
1316+ used to enable or disable collection of data by the profiler for each request.
1317+ Combine it with the ``collect `` option to enable/disable the profiler on demand:
1318+
1319+ * If the ``collect `` option is set to ``true `` but this parameter exists in a
1320+ request and has any value other than ``true ``, ``yes ``, ``on `` or ``1 ``, the
1321+ request data will not be collected;
1322+ * If the ``collect `` option is set to ``false ``, but this parameter exists in a
1323+ request and has value of ``true ``, ``yes ``, ``on `` or ``1 ``, the request data
1324+ will be collected.
13231325
13241326.. versionadded :: 5.4
13251327
1326- The `collect_parameter ` was introduced in Symfony 5.4.
1328+ The `` collect_parameter `` option was introduced in Symfony 5.4.
13271329
13281330only_exceptions
13291331...............
0 commit comments