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 900d2ea commit 5ebf7d4Copy full SHA for 5ebf7d4
Container.php
@@ -290,6 +290,14 @@ public function reset(): void
290
$this->envCache = $this->services = $this->factories = $this->privates = [];
291
}
292
293
+ /**
294
+ * @internal
295
+ */
296
+ public function resetEnvCache(): void
297
+ {
298
+ $this->envCache = [];
299
+ }
300
+
301
/**
302
* Gets all service ids.
303
*
EnvVarProcessor.php
@@ -374,5 +374,9 @@ public function reset(): void
374
{
375
$this->loadedVars = [];
376
$this->loaders = $this->originalLoaders;
377
378
+ if ($this->container instanceof Container) {
379
+ $this->container->resetEnvCache();
380
381
382
0 commit comments