Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77d920f

Browse files
committed
[#2565] Tweaks to new profiler.collect options
1 parent f04c2db commit 77d920f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

reference/configuration/framework.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,12 @@ would be ``/images/logo.png?version=5``.
389389
profiler
390390
~~~~~~~~
391391

392+
.. versionadded:: 2.3
393+
394+
The ``collect`` option is new in Symfony 2.3. Previously, when ``profiler.enabled``
395+
was false, the profiler *was* actually enabled, but the collectors were
396+
disabled. Now the profiler and collectors can be controller independently.
397+
392398
collect
393399
.......
394400

@@ -397,7 +403,7 @@ collect
397403
This option configures the way the profiler behaves when it is enabled. If set
398404
to ``true``, the profiler collects data for all requests. If you want to only
399405
collect information on-demand, you can set the ``collect`` flag to ``false``
400-
and activate the data collects by hand::
406+
and activate the data collectors by hand::
401407

402408
$profiler->enable();
403409

0 commit comments

Comments
 (0)