This commit is contained in:
2021-09-29 17:32:56 +08:00
parent db56419dbc
commit 47be3285c5
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ class Connection extends Component
public function create($coroutineName, $config): Closure
{
return static function () use ($coroutineName, $config) {
return Kiri::getDi()->newObject(PDO::class, [
return Kiri::getDi()->create(PDO::class, [
$config['database'], $config['cds'], $config['username'], $config['password'], $config['charset'] ?? 'utf8mb4'
]);
};