8000 bug #6578 [Cookbook][Profiler] Fix arguments for Profiler::find() (ha… · symfony/symfony-docs@8f46cb8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f46cb8

Browse files
committed
bug #6578 [Cookbook][Profiler] Fix arguments for Profiler::find() (hason)
This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook][Profiler] Fix arguments for Profiler::find() | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | ^2.3 \|\| 3.0.* | Fixed tickets | - Commits ------- edf26da [2.3][Cookbook][Profiler] Fix arguments for Profiler::find()
2 parents 53accc0 + edf26da commit 8f46cb8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cookbook/profiler/profiling_data.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ The ``profiler`` service also provides the
3434
look for tokens based on some criteria::
3535

3636
// get the latest 10 tokens
37-
$tokens = $container->get('profiler')->find('', '', 10, '', '');
37+
$tokens = $container->get('profiler')->find('', '', 10, '', '', '');
3838

3939
// get the latest 10 tokens for all URL containing /admin/
40-
$tokens = $container->get('profiler')->find('', '/admin/', 10, '', '');
40+
$tokens = $container->get('profiler')->find('', '/admin/', 10, '', '', '');
4141

42-
// get the latest 10 tokens for local requests
43-
$tokens = $container->get('profiler')->find('127.0.0.1', '', 10, '', '');
42+
// get the latest 10 tokens for local POST requests
43+
$tokens = $container->get('profiler')->find('127.0.0.1', '', 10, 'POST', '', '');
4444

4545
// get the latest 10 tokens for requests that happened between 2 and 4 days ago
4646
$tokens = $container->get('profiler')
47-
->find('', '', 10, '4 days ago', '2 days ago');
47+
->find('', '', 10, '', '4 days ago', '2 days ago');
4848

4949
Lastly, if you want to manipulate profiling data on a different machine than the
5050
one where the information was generated, use the ``profiler:export`` and

0 commit comments

Comments
 (0)
0