igengx
This commit is contained in:
@@ -96,7 +96,10 @@ final class EsignClient
|
||||
|
||||
public function __construct(?array $configuration = null, ?callable $transport = null, ?callable $clock = null)
|
||||
{
|
||||
$this->configuration = $configuration ?? (array) \think\facade\Config::get('esign', []);
|
||||
$this->configuration = $configuration ?? array_replace(
|
||||
(array) \think\facade\Config::get('esign', []),
|
||||
['enabled' => PrescriptionEsignService::enabled()]
|
||||
);
|
||||
$this->transport = $transport !== null ? Closure::fromCallable($transport) : Closure::fromCallable([self::class, 'curlTransport']);
|
||||
$this->clock = $clock !== null ? Closure::fromCallable($clock) : static fn (): int => (int) floor(microtime(true) * 1000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user