Skip to content

Commit 2217d9e

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [FrameworkBundle][HttpKernel] Document `collect_parameter`
2 parents 72f19fc + 4a72b24 commit 2217d9e

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
@@ -1264,6 +1264,22 @@ activate the data collectors manually::
12641264

12651265
$profiler->enable();
12661266

1267+
collect_parameter
1268+
.................
1269+
1270+
**type**: ``string`` **default**: ``null``
1271+
1272+
This specifies name of a query parameter, a body parameter or a request attribute
1273+
used to enable or disable collection of data by the profiler for each request.
1274+
Combine it with the ``collect`` option to enable/disable the profiler on demand:
1275+
1276+
* If the ``collect`` option is set to ``true`` but this parameter exists in a
1277+
request and has any value other than ``true``, ``yes``, ``on`` or ``1``, the
1278+
request data will not be collected;
1279+
* If the ``collect`` option is set to ``false``, but this parameter exists in a
1280+
request and has value of ``true``, ``yes``, ``on`` or ``1``, the request data
1281+
will be collected.
1282+
12671283
only_exceptions
12681284
...............
12691285

0 commit comments

Comments
 (0)