From b61653230dc8c7de10ca12bde242c9b415063fdd 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 c744f9d8..3207d7ea 100644 --- a/inc/context.php +++ b/inc/context.php @@ -2,7 +2,7 @@ namespace Vichan; use Vichan\Data\Driver\CacheDriver; -use Vichan\Data\{ReportQueries, UserPostQueries}; +use Vichan\Data\{IpNoteQueries, ReportQueries, UserPostQueries}; defined('TINYBOARD') or exit; @@ -48,6 +48,7 @@ function build_context(array $config): Context { }, UserPostQueries::class => function($c) { return new UserPostQueries($c->get(\PDO::class)); - } + }, + IpNoteQueries::class => fn($c) => new IpNoteQueries($c->get(\PDO::class), $c->get(CacheDriver::class)), ]); }