forked from leftypol/leftypol
context.php: use UserPostQueries
This commit is contained in:
parent
3c2bc57245
commit
0b4ac333c7
1 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
namespace Vichan;
|
||||
|
||||
use Vichan\Data\Driver\CacheDriver;
|
||||
use Vichan\Data\ReportQueries;
|
||||
use Vichan\Data\{ReportQueries, UserPostQueries};
|
||||
|
||||
defined('TINYBOARD') or exit;
|
||||
|
||||
|
@ -45,6 +45,9 @@ 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);
|
||||
},
|
||||
UserPostQueries::class => function($c) {
|
||||
return new UserPostQueries($c->get(\PDO::class));
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue