File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ protected function setDatabaseConnections($app): void
39
39
$ this ->setDatabaseConnection ($ app , $ this ->target_connection , $ this ->defaultTargetConnectionName ());
40
40
}
41
41
42
- protected function setDatabaseConnection ($ app , string $ name , string $ connection ): void
42
+ protected function setDatabaseConnection ($ app , string $ connection , string $ default_connection ): void
43
43
{
44
- $ configurator = $ this ->getConfigurator ($ connection );
44
+ $ configurator = $ this ->getConfigurator ($ default_connection );
45
45
46
- $ configurator ->setDatabase ($ name );
46
+ $ configurator ->setDatabase ($ connection );
47
47
48
- $ app ->config ->set ('database.connections. ' . $ name , $ configurator ->toArray ());
48
+ $ app ->config ->set ('database.connections. ' . $ connection , $ configurator ->toArray ());
49
49
}
50
50
51
51
protected function getConfigurator (string $ connection ): BaseConfiguration
You can’t perform that action at this time.
0 commit comments