bind clock and token generator
This commit is contained in:
parent
05f4f334e6
commit
821f654d69
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue