update
This commit is contained in:
5
modules/pshowsso/vendor/lcobucci/jwt/compat/class-aliases.php
vendored
Normal file
5
modules/pshowsso/vendor/lcobucci/jwt/compat/class-aliases.php
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
\class_exists(\Pshowsso\Scope68f5e85e9608b\Lcobucci\JWT\Token\Plain::class, \false) || \class_alias(\Pshowsso\Scope68f5e85e9608b\Lcobucci\JWT\Token::class, \Pshowsso\Scope68f5e85e9608b\Lcobucci\JWT\Token\Plain::class);
|
||||
\class_exists(\Pshowsso\Scope68f5e85e9608b\Lcobucci\JWT\Token\Signature::class, \false) || \class_alias(\Pshowsso\Scope68f5e85e9608b\Lcobucci\JWT\Signature::class, \Pshowsso\Scope68f5e85e9608b\Lcobucci\JWT\Token\Signature::class);
|
||||
9
modules/pshowsso/vendor/lcobucci/jwt/compat/json-exception-polyfill.php
vendored
Normal file
9
modules/pshowsso/vendor/lcobucci/jwt/compat/json-exception-polyfill.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
|
||||
if (\PHP_VERSION_ID < 70300 && !\class_exists('JsonException')) {
|
||||
class JsonException extends \Exception
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
59
modules/pshowsso/vendor/lcobucci/jwt/compat/lcobucci-clock-polyfill.php
vendored
Normal file
59
modules/pshowsso/vendor/lcobucci/jwt/compat/lcobucci-clock-polyfill.php
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
namespace Lcobucci\Clock;
|
||||
|
||||
use DateTimeImmutable;
|
||||
use DateTimeZone;
|
||||
use function interface_exists;
|
||||
if (!interface_exists(\Lcobucci\Clock\Clock::class)) {
|
||||
interface Clock
|
||||
{
|
||||
/** @return DateTimeImmutable */
|
||||
public function now();
|
||||
}
|
||||
final class FrozenClock implements \Lcobucci\Clock\Clock
|
||||
{
|
||||
/** @var DateTimeImmutable */
|
||||
private $now;
|
||||
public function __construct(DateTimeImmutable $now)
|
||||
{
|
||||
$this->now = $now;
|
||||
}
|
||||
/** @return self */
|
||||
public static function fromUTC()
|
||||
{
|
||||
return new self(new DateTimeImmutable('now', new DateTimeZone('UTC')));
|
||||
}
|
||||
public function setTo(DateTimeImmutable $now)
|
||||
{
|
||||
$this->now = $now;
|
||||
}
|
||||
public function now()
|
||||
{
|
||||
return $this->now;
|
||||
}
|
||||
}
|
||||
final class SystemClock implements \Lcobucci\Clock\Clock
|
||||
{
|
||||
/** @var DateTimeZone */
|
||||
private $timezone;
|
||||
public function __construct(DateTimeZone $timezone)
|
||||
{
|
||||
$this->timezone = $timezone;
|
||||
}
|
||||
/** @return self */
|
||||
public static function fromUTC()
|
||||
{
|
||||
return new self(new DateTimeZone('UTC'));
|
||||
}
|
||||
/** @return self */
|
||||
public static function fromSystemTimezone()
|
||||
{
|
||||
return new self(new DateTimeZone(date_default_timezone_get()));
|
||||
}
|
||||
public function now()
|
||||
{
|
||||
return new DateTimeImmutable('now', $this->timezone);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user