Skip to content

Commit

Permalink
Merge pull request #18 from minvws/fix
Browse files Browse the repository at this point in the history
make sure we return the instances
  • Loading branch information
jaytaph authored Oct 24, 2022
2 parents ced7f57 + 316b250 commit 5565e2c
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 5565e2c

Please sign in to comment.