111
This commit is contained in:
@@ -112,6 +112,7 @@ class Connection extends Component
|
|||||||
public function create($coroutineName, $config): Closure
|
public function create($coroutineName, $config): Closure
|
||||||
{
|
{
|
||||||
return static function () use ($coroutineName, $config) {
|
return static function () use ($coroutineName, $config) {
|
||||||
|
debug('create db.');
|
||||||
return Kiri::getDi()->newObject(PDO::class, [
|
return Kiri::getDi()->newObject(PDO::class, [
|
||||||
$config['database'], $config['cds'], $config['username'], $config['password'], $config['charset'] ?? 'utf8mb4'
|
$config['database'], $config['cds'], $config['username'], $config['password'], $config['charset'] ?? 'utf8mb4'
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user