add system clock
This commit is contained in:
parent
04712bdd2d
commit
de4d577781
1 changed files with 13 additions and 0 deletions
13
app/Auth/SystemClock.php
Normal file
13
app/Auth/SystemClock.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Auth;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
class SystemClock implements Clock
|
||||
{
|
||||
public function now(): DateTimeImmutable
|
||||
{
|
||||
return new DateTimeImmutable();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue