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:
Yisroel Baum 2026-05-16 21:33:56 +03:00
parent e54197f8a5
commit 9703f82788
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
18 changed files with 335 additions and 0 deletions

29
backend/app/User/User.php Normal file
View file

@ -0,0 +1,29 @@
<?php
namespace App\User;
use App\Shared\ValueObject\EmailAddress;
class User
{
public function __construct(
private int $id,
private EmailAddress $email,
private string $passwordHash,
) {}
public function getId(): int
{
return $this->id;
}
public function getEmail(): EmailAddress
{
return $this->email;
}
public function getPasswordHash(): string
{
return $this->passwordHash;
}
}