Skip to content

Commit 7bd3439

Browse files
committed
get variable fom cache
1 parent d9fe979 commit 7bd3439

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/LaravelAwsSecretsManager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ protected function getVariables()
106106
'SecretId' => $secret['ARN'],
107107
]);
108108

109-
$envString = $result['Name'].'='.$result['SecretString'];
110-
putenv("$envString");
111109
$this->storeToCache($result['Name'], $result['SecretString']);
112110
}
113111
}
@@ -116,7 +114,7 @@ protected function getVariables()
116114
protected function updateConfigs()
117115
{
118116
foreach ($this->configVariables as $variable => $configPath) {
119-
config([$configPath => env($variable)]);
117+
config([$configPath => Cache::store($this->cacheStore)->get($variable)]);
120118
}
121119
}
122120

0 commit comments

Comments
 (0)