File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,10 @@ class DatabaseManager extends BaseDatabaseManager
14
14
{
15
15
protected function configuration ($ name )
16
16
{
17
- // аргумент $name содержит название подключения
18
- // по названию подключения находим и возвращаем соответствующий конфиг
19
17
20
18
$ dbconf = Config::get ("database.connections. " . $ name );
21
- //if db driver is vault we get it from rest api / cache
22
- if ($ dbconf ['driver ' ] == 'secret-db ' ) {
19
+ //if db driver is secret we get it from rest api / cache
20
+ if ($ dbconf ['driver ' ] == 'secret ' ) {
23
21
$ config = $ this ->getSecret ($ name );
24
22
if (is_null ($ config )) {
25
23
//check if config is in cache
@@ -49,7 +47,6 @@ protected function configuration($name)
49
47
public function getSecret ($ secret )
50
48
{
51
49
$ cacheKey = "database-config- " . $ secret ;
52
- $ cacheKeyBackUp = "database-config- " . $ secret ;
53
50
$ CacheMinutes = Config::get ("secret.chache " );
54
51
$ expiresIn = now ()->addMinutes ($ CacheMinutes );
55
52
You can’t perform that action at this time.
0 commit comments