We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90e478b commit 2223d89Copy full SHA for 2223d89
src/MakePdoConnection.php
@@ -5,6 +5,7 @@
5
6
use rabbit\core\ObjectFactory;
7
use rabbit\db\mysql\RetryHandler;
8
+use rabbit\pool\PoolProperties;
9
10
/**
11
* Class MakePdoConnection
@@ -39,9 +40,9 @@ public static function addConnection(
39
40
'pool' => ObjectFactory::createObject([
41
'class' => \rabbit\db\pool\PdoPool::class,
42
'poolConfig' => ObjectFactory::createObject([
- 'class' => \rabbit\db\pool\PdoPoolConfig::class,
43
- 'minActive' => intval($pool['min'] ),
44
- 'maxActive' => intval( $pool['max']),
+ 'class' => PoolProperties::class,
+ 'minActive' => intval($pool['min']),
45
+ 'maxActive' => intval($pool['max']),
46
'maxWait' => $pool['wait'],
47
'maxRetry' => $pool['retry']
48
], [], false)
0 commit comments