From a59459907869ef785ea62b7388b968a9bf4aa8b6 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 7 Nov 2019 17:20:24 +0100 Subject: [PATCH] [FrameworkBundle] fix SodiumVault after stof review --- src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php b/src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php index 1f3ca5a21a804..cb6e9f527fdae 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php +++ b/src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php @@ -52,7 +52,7 @@ public function generateKeys(bool $override = false): bool try { $this->loadKeys(); - } catch (\LogicException $e) { + } catch (\RuntimeException $e) { // ignore failures to load keys } @@ -186,7 +186,7 @@ private function loadKeys(): void } elseif ('' !== $this->decryptionKey) { $this->encryptionKey = sodium_crypto_box_publickey($this->decryptionKey); } else { - throw new \LogicException(sprintf('Encryption key not found in "%s".', \dirname($this->pathPrefix))); + throw new \RuntimeException(sprintf('Encryption key not found in "%s".', \dirname($this->pathPrefix))); } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy