Files
hyperf_rbac_framework_serve…/app/Lib/Jwt/Clock.php
2025-09-12 15:23:08 +08:00

15 lines
255 B
PHP

<?php
namespace App\Lib\Jwt;
use Carbon\Carbon;
use DateTimeImmutable;
use Psr\Clock\ClockInterface;
class Clock implements ClockInterface
{
public function now(): DateTimeImmutable
{
return Carbon::now()->toDateTimeImmutable();
}
}