mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 19:51:30 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -70,6 +70,8 @@ abstract class AbstractUid implements \JsonSerializable, \Stringable
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $uid A valid RFC 9562/4122 uid
|
||||
*
|
||||
* @throws \InvalidArgumentException When the passed value is not valid
|
||||
*/
|
||||
public static function fromRfc4122(string $uid): static
|
||||
@@ -120,9 +122,9 @@ abstract class AbstractUid implements \JsonSerializable, \Stringable
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the identifier as a RFC4122 case insensitive string.
|
||||
* Returns the identifier as a RFC 9562/4122 case insensitive string.
|
||||
*
|
||||
* @see https://tools.ietf.org/html/rfc4122#section-3
|
||||
* @see https://datatracker.ietf.org/doc/html/rfc9562/#section-4
|
||||
*
|
||||
* @example 09748193-048a-4bfb-b825-8528cf74fdc1 (len=36)
|
||||
*/
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ class BinaryUtil
|
||||
'u' => 52, 'v' => 53, 'w' => 54, 'x' => 55, 'y' => 56, 'z' => 57,
|
||||
];
|
||||
|
||||
// https://tools.ietf.org/html/rfc4122#section-4.1.4
|
||||
// https://datatracker.ietf.org/doc/html/rfc9562#section-5.1
|
||||
// 0x01b21dd213814000 is the number of 100-ns intervals between the
|
||||
// UUID epoch 1582-10-15 00:00:00 and the Unix epoch 1970-01-01 00:00:00.
|
||||
private const TIME_OFFSET_INT = 0x01B21DD213814000;
|
||||
|
||||
+3
-3
@@ -14,7 +14,7 @@ namespace Symfony\Component\Uid;
|
||||
/**
|
||||
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
||||
*
|
||||
* @see https://tools.ietf.org/html/rfc4122#appendix-C for details about namespaces
|
||||
* @see https://datatracker.ietf.org/doc/html/rfc9562/#section-6.6 for details about namespaces
|
||||
*/
|
||||
class Uuid extends AbstractUid
|
||||
{
|
||||
@@ -153,9 +153,9 @@ class Uuid extends AbstractUid
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the identifier as a RFC4122 case insensitive string.
|
||||
* Returns the identifier as a RFC 9562/4122 case insensitive string.
|
||||
*
|
||||
* @see https://tools.ietf.org/html/rfc4122#section-3
|
||||
* @see https://datatracker.ietf.org/doc/html/rfc9562/#section-4
|
||||
*
|
||||
* @example 09748193-048a-4bfb-b825-8528cf74fdc1 (len=36)
|
||||
*/
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ class UuidV1 extends Uuid implements TimeBasedUidInterface
|
||||
public function __construct(?string $uuid = null)
|
||||
{
|
||||
if (null === $uuid) {
|
||||
$this->uid = uuid_create(static::TYPE);
|
||||
$this->uid = strtolower(uuid_create(static::TYPE));
|
||||
} else {
|
||||
parent::__construct($uuid, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user