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 6ae89db commit d3b532cCopy full SHA for d3b532c
src/Codeception/Lib/Connector/Yii2.php
@@ -66,6 +66,11 @@ public function startApp()
66
if (!isset($config['class'])) {
67
$config['class'] = 'yii\web\Application';
68
}
69
+ if (static::$db) {
70
+ // If the DB conection already exists, make sure to pass it as early as possible
71
+ // to prevent application from new connection creating during bootstrap
72
+ $config['components']['db'] = static::$db;
73
+ }
74
/** @var \yii\web\Application $app */
75
$this->app = Yii::createObject($config);
76
$this->persistDb();
0 commit comments