From 821f654d695dc3835d008821436940d810faf603 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Fri, 24 Apr 2026 13:24:39 +0300 Subject: [PATCH] bind clock and token generator --- bootstrap/container.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap/container.php b/bootstrap/container.php index c640d76..4568c66 100644 --- a/bootstrap/container.php +++ b/bootstrap/container.php @@ -2,8 +2,12 @@ use DI; use DI\Container; +use App\Auth\Clock; use App\Auth\JsonSessionRepository; +use App\Auth\RandomTokenGenerator; use App\Auth\SessionRepository; +use App\Auth\SystemClock; +use App\Auth\TokenGenerator; use App\Text\TextRepository; use App\Text\JsonTextRepository; use App\Node\NodeRepository; @@ -24,6 +28,8 @@ $container = new Container([ DI\autowire(JsonScheduledNodeRepository::class), SessionRepository::class => DI\autowire(JsonSessionRepository::class), + TokenGenerator::class => DI\autowire(RandomTokenGenerator::class), + Clock::class => DI\autowire(SystemClock::class), ]); return $container;