mirror of
https://github.com/humhub/humhub.git
synced 2025-02-25 03:34:10 +01:00
Merge pull request #2873 from danielkesselberg/temporary-connection
Use temporary connection object
This commit is contained in:
commit
359467c9ba
@ -82,12 +82,13 @@ class SetupController extends Controller
|
||||
'charset' => 'utf8',
|
||||
];
|
||||
|
||||
|
||||
Yii::$app->set('db', $dbConfig);
|
||||
|
||||
try {
|
||||
|
||||
/** @var yii\db\Connection $temporaryConnection */
|
||||
$temporaryConnection = Yii::createObject($dbConfig);
|
||||
|
||||
// Check DB Connection
|
||||
Yii::$app->db->open();
|
||||
$temporaryConnection->open();
|
||||
|
||||
// Write Config
|
||||
$config['components']['db'] = $dbConfig;
|
||||
|
Loading…
x
Reference in New Issue
Block a user