Skip to content

Commit

Permalink
make sure we return the instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Oct 24, 2022
1 parent ced7f57 commit 316b250
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CryptoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function register(): void
$this->app->bind(TempFileInterface::class, TempFileService::class);

$this->app->singleton(CmsCryptoInterface::class, function () {
Factory::createCmsCryptoService(
return Factory::createCmsCryptoService(
encryptionCertPaths: config('crypto.cms.encryption_certificate_paths'),
decryptionCertPath: config('crypto.cms.decryption_certificate_path'),
decryptionKeyPath: config('crypto.cms.decryption_certificate_key_path'),
Expand All @@ -23,14 +23,14 @@ public function register(): void
});

$this->app->singleton(SealboxCryptoInterface::class, function () {
Factory::createSealboxCryptoService(
return Factory::createSealboxCryptoService(
privKey: config('crypto.sealbox.private_key'),
recipientPubKey: config('crypto.sealbox.recipient_pub_key'),
);
});

$this->app->singleton(SignatureCryptoInterface::class, function () {
Factory::createSignatureCryptoService(
return Factory::createSignatureCryptoService(
certificatePath: config('crypto.signature.x509_cert'),
certificateKeyPath: config('crypto.signature.x509_key'),
certificateKeyPass: config('crypto.signature.x509_pass'),
Expand Down

0 comments on commit 316b250

Please sign in to comment.