1 | <?php |
||
17 | class DatabasePool implements PoolInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var Database[] |
||
21 | */ |
||
22 | protected $connections = []; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $config; |
||
28 | |||
29 | /** |
||
30 | * Database constructor. |
||
31 | * |
||
32 | * @param array $config |
||
33 | */ |
||
34 | 35 | public function __construct(array $config) |
|
38 | |||
39 | /** |
||
40 | * @param $key |
||
41 | * |
||
42 | * @return Database |
||
43 | */ |
||
44 | 35 | public function getConnection($key) |
|
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | 1 | public function initPool() |
|
79 | } |
||
80 |