modify
This commit is contained in:
@@ -35,7 +35,7 @@ class ObjectPool extends \Snowflake\Abstracts\Pool
|
|||||||
public function getConnection(array $config, bool $isMaster): mixed
|
public function getConnection(array $config, bool $isMaster): mixed
|
||||||
{
|
{
|
||||||
if (is_object($config[0])) {
|
if (is_object($config[0])) {
|
||||||
return $config[0];
|
$config[0] = get_class($config[0]) ;
|
||||||
}
|
}
|
||||||
return $this->get(md5($config[0]), $config);
|
return $this->get(md5($config[0]), $config);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user