context.php: remove cache from ReportQueries

This commit is contained in:
Zankaria 2024-12-08 13:30:12 +01:00
parent d3782562b8
commit 222523e574

View file

@ -44,8 +44,7 @@ function build_context(array $config): Context {
ReportQueries::class => function($c) { ReportQueries::class => function($c) {
$auto_maintenance = (bool)$c->get('config')['auto_maintenance']; $auto_maintenance = (bool)$c->get('config')['auto_maintenance'];
$pdo = $c->get(\PDO::class); $pdo = $c->get(\PDO::class);
$cache = $c->get(CacheDriver::class); return new ReportQueries($pdo, $auto_maintenance);
return new ReportQueries($pdo, $cache, $auto_maintenance);
} }
]); ]);
} }