Skip to content

[FrameworkBundle][HttpKernel] Document collect_parameter #16813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,24 @@ activate the data collectors manually::

$profiler->enable();

collect_parameter
.................

**type**: ``string`` **default**: ``null``

This specifies name of query parameter, body parameter or a request attribute
that can be used to enable or disable collection of data by the profiler
individually for each request. If ``collect`` flag is set to ``true``,
but the parameter exists in a request and has any value other than ``true``,
``yes``, ``on`` or ``1``, the request data will not be collected.
If ``collect`` flag is set to ``false``, but the parameter exists in a request
and has value of ``true``, ``yes``, ``on`` or ``1``,
the request data will be collected.

.. versionadded:: 5.4

The `collect_parameter` was introduced in Symfony 5.4.

only_exceptions
...............

Expand Down