@@ -34,17 +34,17 @@ The ``profiler`` service also provides the
34
34
look for tokens based on some criteria::
35
35
36
36
// get the latest 10 tokens
37
- $tokens = $container->get('profiler')->find('', '', 10, '', '');
37
+ $tokens = $container->get('profiler')->find('', '', 10, '', '', '' );
38
38
39
39
// 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, '', '', '' );
41
41
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', ' ', '');
44
44
45
45
// get the latest 10 tokens for requests that happened between 2 and 4 days ago
46
46
$tokens = $container->get('profiler')
47
- ->find('', '', 10, '4 days ago', '2 days ago');
47
+ ->find('', '', 10, '', ' 4 days ago', '2 days ago');
48
48
49
49
Lastly, if you want to manipulate profiling data on a different machine than the
50
50
one where the information was generated, use the ``profiler:export `` and
0 commit comments