We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e526d81 commit 88747daCopy full SHA for 88747da
Secrets/SodiumVault.php
@@ -12,6 +12,7 @@
12
namespace Symfony\Bundle\FrameworkBundle\Secrets;
13
14
use Symfony\Component\DependencyInjection\EnvVarLoaderInterface;
15
+use Symfony\Component\String\LazyString;
16
use Symfony\Component\VarExporter\VarExporter;
17
18
/**
@@ -169,7 +170,14 @@ public function list(bool $reveal = false): array
169
170
171
public function loadEnvVars(): array
172
{
- return $this->list(true);
173
+ $envs = [];
174
+ $reveal = $this->reveal(...);
175
+
176
+ foreach ($this->list() as $name => $value) {
177
+ $envs[$name] = LazyString::fromCallable($reveal, $name);
178
+ }
179
180
+ return $envs;
181
}
182
183
private function loadKeys(): void
0 commit comments