wire postgres session repo, migrations, seed, and dev serve
This commit is contained in:
parent
02effe761a
commit
89b63cb9e9
8 changed files with 235 additions and 2 deletions
|
|
@ -3,7 +3,9 @@
|
|||
use App\Auth\BcryptPasswordHasher;
|
||||
use App\Auth\Clock;
|
||||
use App\Auth\PasswordHasher;
|
||||
use App\Auth\PostgresSessionRepository;
|
||||
use App\Auth\RandomTokenGenerator;
|
||||
use App\Auth\SessionRepository;
|
||||
use App\Auth\SystemClock;
|
||||
use App\Auth\TokenGenerator;
|
||||
use App\Auth\UseCases\AuthenticateUser\AuthenticateUser;
|
||||
|
|
@ -26,6 +28,7 @@ $builder->addDefinitions([
|
|||
|
||||
// Repositories
|
||||
UserRepository::class => DI\create(PostgresUserRepository::class),
|
||||
SessionRepository::class => DI\create(PostgresSessionRepository::class),
|
||||
|
||||
// Use cases
|
||||
AuthenticateUser::class => DI\autowire(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue