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.
12 lines
236 B
PHP
12 lines
236 B
PHP
<?php
|
|
|
|
namespace App\Auth;
|
|
|
|
interface SessionRepository
|
|
{
|
|
public function create(CreateSessionDto $dto): Session;
|
|
|
|
public function findByToken(string $token): ?Session;
|
|
|
|
public function deleteByToken(string $token): void;
|
|
}
|