Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-14 16:05:12 +08:00
parent c3a3551ba3
commit 2ffdf83645
+13 -3
View File
@@ -118,6 +118,19 @@ class Connection extends Component
}
/**
* @param string $name
* @param PDO $PDO
* @return void
* @throws Kiri\Exception\ConfigException
* @throws Exception
*/
public function addItem(string $name, PDO $PDO)
{
$this->getPool()->push($name, $PDO);
}
/**
* @param $name
* @param $isMaster
@@ -128,9 +141,6 @@ class Connection extends Component
{
$pool = $this->getPool();
$pool->initConnections($name, $isMaster, $max);
for ($i = 0; $i < $max; $i++) {
$pool->push($name, $this->create($name, []));
}
}