File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 17
17
use Symfony \Component \HttpFoundation \Request ;
18
18
use Symfony \Component \HttpFoundation \Response ;
19
19
use Symfony \Component \HttpKernel \DataCollector \DataCollector ;
20
+ use Symfony \Component \HttpKernel \DataCollector \LateDataCollectorInterface ;
20
21
use Throwable ;
21
22
22
23
use function array_filter ;
23
24
use function array_reduce ;
24
25
use function count ;
25
26
26
- class RedisDataCollector extends DataCollector
27
+ class RedisDataCollector extends DataCollector implements LateDataCollectorInterface
27
28
{
28
29
protected RedisLogger $ logger ;
29
30
@@ -67,4 +68,9 @@ public function getName(): string
67
68
{
68
69
return 'redis ' ;
69
70
}
71
+
72
+ public function lateCollect (): void
73
+ {
74
+ $ this ->data = ['commands ' => $ this ->logger ->getCommands ()];
75
+ }
70
76
}
You can’t perform that action at this time.
0 commit comments