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.
14 lines
236 B
PHP
14 lines
236 B
PHP
<?php
|
|
|
|
namespace App\Auth;
|
|
|
|
use DateTimeImmutable;
|
|
use DateTimeZone;
|
|
|
|
class SystemClock implements Clock
|
|
{
|
|
public function now(): DateTimeImmutable
|
|
{
|
|
return new DateTimeImmutable('now', new DateTimeZone('UTC'));
|
|
}
|
|
}
|