|
@@ -101,7 +101,11 @@ class LuticateApplication implements MessageComponentInterface
|
101
|
101
|
'collation' => 'utf8_unicode_ci',
|
102
|
102
|
'prefix' => ''
|
103
|
103
|
];
|
104
|
|
- $capsule->addConnection(array_merge($default, $database), $database['name']);
|
|
104
|
+ $db = array_merge($default, $database);
|
|
105
|
+ if ($db['driver'] == 'pgsql' || $db['driver'] == 'mysql' ||
|
|
106
|
+ $db['driver'] == 'sqlite' || $db['driver'] == 'sqlsrv') {
|
|
107
|
+ $capsule->addConnection($db, $database['name']);
|
|
108
|
+ }
|
105
|
109
|
}
|
106
|
110
|
$capsule->setAsGlobal();
|
107
|
111
|
}
|