bind clock and token generator

This commit is contained in:
Yisroel Baum 2026-04-24 13:24:39 +03:00
parent 05f4f334e6
commit 821f654d69
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -2,8 +2,12 @@
use DI; use DI;
use DI\Container; use DI\Container;
use App\Auth\Clock;
use App\Auth\JsonSessionRepository; use App\Auth\JsonSessionRepository;
use App\Auth\RandomTokenGenerator;
use App\Auth\SessionRepository; use App\Auth\SessionRepository;
use App\Auth\SystemClock;
use App\Auth\TokenGenerator;
use App\Text\TextRepository; use App\Text\TextRepository;
use App\Text\JsonTextRepository; use App\Text\JsonTextRepository;
use App\Node\NodeRepository; use App\Node\NodeRepository;
@ -24,6 +28,8 @@ $container = new Container([
DI\autowire(JsonScheduledNodeRepository::class), DI\autowire(JsonScheduledNodeRepository::class),
SessionRepository::class => SessionRepository::class =>
DI\autowire(JsonSessionRepository::class), DI\autowire(JsonSessionRepository::class),
TokenGenerator::class => DI\autowire(RandomTokenGenerator::class),
Clock::class => DI\autowire(SystemClock::class),
]); ]);
return $container; return $container;