add domain layer, config, and entry point
Domain: User, Session, EmailAddress, DTOs, repositories, services (PasswordHasher, TokenGenerator, Clock). Config: PHP-DI container definitions and Slim routes. Entry point: public/index.php with slim-bridge.
This commit is contained in:
parent
e54197f8a5
commit
9703f82788
18 changed files with 335 additions and 0 deletions
14
backend/app/User/UserRepository.php
Normal file
14
backend/app/User/UserRepository.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace App\User;
|
||||
|
||||
use App\Shared\ValueObject\EmailAddress;
|
||||
|
||||
interface UserRepository
|
||||
{
|
||||
public function create(CreateUserDto $dto): User;
|
||||
|
||||
public function findByEmail(EmailAddress $email): ?User;
|
||||
|
||||
public function find(int $id): ?User;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue