forked from leftypol/leftypol
context.php: provide IpNoteQueries
This commit is contained in:
parent
5d52f6b32a
commit
b61653230d
1 changed files with 3 additions and 2 deletions
|
@ -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)),
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue