Skip to content

Commit

Permalink
force create
Browse files Browse the repository at this point in the history
  • Loading branch information
bangnokia committed Sep 12, 2023
1 parent 07b796b commit fb6f68c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/Signature.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit fb6f68c

Please sign in to comment.