save
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Lcobucci\JWT\Validation\Constraint;
|
||||
|
||||
use DateInterval;
|
||||
use Lcobucci\Clock\Clock;
|
||||
use Lcobucci\JWT\Token;
|
||||
use Lcobucci\JWT\Validation\Constraint;
|
||||
|
||||
/** @deprecated Use \Lcobucci\JWT\Validation\Constraint\LooseValidAt */
|
||||
final class ValidAt implements Constraint
|
||||
{
|
||||
private LooseValidAt $constraint;
|
||||
|
||||
public function __construct(Clock $clock, ?DateInterval $leeway = null)
|
||||
{
|
||||
$this->constraint = new LooseValidAt($clock, $leeway);
|
||||
}
|
||||
|
||||
public function assert(Token $token): void
|
||||
{
|
||||
$this->constraint->assert($token);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user