Skip to content

Commit 2223d89

Browse files
committed
fix dep bug
1 parent 90e478b commit 2223d89

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/MakePdoConnection.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
use rabbit\core\ObjectFactory;
77
use rabbit\db\mysql\RetryHandler;
8+
use rabbit\pool\PoolProperties;
89

910
/**
1011
* Class MakePdoConnection
@@ -39,9 +40,9 @@ public static function addConnection(
3940
'pool' => ObjectFactory::createObject([
4041
'class' => \rabbit\db\pool\PdoPool::class,
4142
'poolConfig' => ObjectFactory::createObject([
42-
'class' => \rabbit\db\pool\PdoPoolConfig::class,
43-
'minActive' => intval($pool['min'] ),
44-
'maxActive' => intval( $pool['max']),
43+
'class' => PoolProperties::class,
44+
'minActive' => intval($pool['min']),
45+
'maxActive' => intval($pool['max']),
4546
'maxWait' => $pool['wait'],
4647
'maxRetry' => $pool['retry']
4748
], [], false)

0 commit comments

Comments
 (0)