From 251d45070547f51030a2d7a96858aff717985edf Mon Sep 17 00:00:00 2001 From: Zankaria Date: Fri, 21 Feb 2025 11:52:19 +0100 Subject: [PATCH] context.php: provide IpNoteQueries --- inc/context.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/context.php b/inc/context.php index b0ad871a..f8b00f35 100644 --- a/inc/context.php +++ b/inc/context.php @@ -2,7 +2,7 @@ namespace Vichan; use Vichan\Data\Driver\{CacheDriver, HttpDriver, ErrorLogLogDriver, FileLogDriver, LogDriver, StderrLogDriver, SyslogLogDriver}; -use Vichan\Data\ReportQueries; +use Vichan\Data\{IpNoteQueries, ReportQueries}; use Vichan\Service\HCaptchaQuery; use Vichan\Service\SecureImageCaptchaQuery; use Vichan\Service\ReCaptchaQuery; @@ -106,6 +106,7 @@ function build_context(array $config): Context { $auto_maintenance = (bool)$c->get('config')['auto_maintenance']; $pdo = $c->get(\PDO::class); return new ReportQueries($pdo, $auto_maintenance); - } + }, + IpNoteQueries::class => fn($c) => new IpNoteQueries($c->get(\PDO::class), $c->get(CacheDriver::class)), ]); }