Skip to content

Commit 90405f9

Browse files
committed
minor #16813 [FrameworkBundle][HttpKernel] Document collect_parameter (SzymonKaminski)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [FrameworkBundle][HttpKernel] Document `collect_parameter` This PR aims to resolve #16047. Commits ------- 83e366a [FrameworkBundle][HttpKernel] Document `collect_parameter`
2 parents 1b577da + 83e366a commit 90405f9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

reference/configuration/framework.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,24 @@ activate the data collectors manually::
13071307

13081308
$profiler->enable();
13091309

1310+
collect_parameter
1311+
.................
1312+
1313+
**type**: ``string`` **default**: ``null``
1314+
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.
1323+
1324+
.. versionadded:: 5.4
1325+
1326+
The `collect_parameter` was introduced in Symfony 5.4.
1327+
13101328
only_exceptions
13111329
...............
13121330

0 commit comments

Comments
 (0)