diff --git a/src/Support/Signature.php b/src/Support/Signature.php index dfa80a4..e42ec2b 100644 --- a/src/Support/Signature.php +++ b/src/Support/Signature.php @@ -36,9 +36,9 @@ private function __construct(string $hashSecret) /** * Tạo đối tượng singleton. */ - public static function make(string $hashSecret): Signature + public static function make(string $hashSecret, bool $forceCreate = false): Signature { - if (static::$instance === null) { + if (static::$instance === null || $forceCreate) { static::$instance = new static($hashSecret); }