Skip to content

Commit 4a72b24

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: [FrameworkBundle][HttpKernel] Document `collect_parameter`
2 parents 4c5ce34 + c35506b commit 4a72b24

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

reference/configuration/framework.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,22 @@ activate the data collectors manually::
12501250

12511251
$profiler->enable();
12521252

1253+
collect_parameter
1254+
.................
1255+
1256+
**type**: ``string`` **default**: ``null``
1257+
1258+
This specifies name of a query parameter, a body parameter or a request attribute
1259+
used to enable or disable collection of data by the profiler for each request.
1260+
Combine it with the ``collect`` option to enable/disable the profiler on demand:
1261+
1262+
* If the ``collect`` option is set to ``true`` but this parameter exists in a
1263+
request and has any value other than ``true``, ``yes``, ``on`` or ``1``, the
1264+
request data will not be collected;
1265+
* If the ``collect`` option is set to ``false``, but this parameter exists in a
1266+
request and has value of ``true``, ``yes``, ``on`` or ``1``, the request data
1267+
will be collected.
1268+
12531269
only_exceptions
12541270
...............
12551271

0 commit comments

Comments
 (0)