Skip to content

Commit 5521702

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [FrameworkBundle][HttpKernel] Document `collect_parameter`
2 parents b6c311d + 486df68 commit 5521702

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

reference/configuration/framework.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
12481268
only_exceptions
12491269
...............
12501270

0 commit comments

Comments
 (0)