Skip to content

Commit 8c8f061

Browse files
Reword option's description, add versionadded directive
1 parent 3161ed8 commit 8c8f061

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

reference/configuration/framework.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,13 +1303,18 @@ collect_parameter
13031303

13041304
**type**: ``string`` **default**: ``null``
13051305

1306-
This option allows to enable or disable the profiler on a per request basis
1307-
using a query parameter, body parameter or a request attribute with the given name.
1308-
If ``collect`` flag is set to ``true``, but the parameter exists in a request
1309-
and has any value other than ``true``, ``yes``, ``on`` or ``1``,
1310-
the request data will not be collected.
1306+
This specifies name of query parameter, body parameter or a request attribute
1307+
that can be used to enable or disable collection of data by the profiler
1308+
individually for each request. If ``collect`` flag is set to ``true``,
1309+
but the parameter exists in a request and has any value other than ``true``,
1310+
``yes``, ``on`` or ``1``, the request data will not be collected.
13111311
If ``collect`` flag is set to ``false``, but the parameter exists in a request
1312-
and has value of ``true``, ``yes``, ``on`` or ``1``, the request data will be collected.
1312+
and has value of ``true``, ``yes``, ``on`` or ``1``,
1313+
the request data will be collected.
1314+
1315+
.. versionadded:: 5.4
1316+
1317+
The `collect_parameter` was introduced in Symfony 5.4.
13131318

13141319
only_exceptions
13151320
...............

0 commit comments

Comments
 (0)