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.
16 lines
287 B
PHP
16 lines
287 B
PHP
<?php
|
|
|
|
namespace App\Auth;
|
|
|
|
use App\User\User;
|
|
use DateTimeImmutable;
|
|
|
|
class CreateSessionDto
|
|
{
|
|
public function __construct(
|
|
public string $token,
|
|
public User $user,
|
|
public DateTimeImmutable $createdAt,
|
|
public DateTimeImmutable $expiresAt,
|
|
) {}
|
|
}
|