This commit is contained in:
2021-02-24 14:53:27 +08:00
parent e219b9a0ac
commit cfda39ebdd
3 changed files with 92 additions and 79 deletions
+4 -1
View File
@@ -33,7 +33,10 @@ class ObjectPool extends \Snowflake\Abstracts\Pool
if (is_object($config)) {
return $config;
}
$object = $this->getFromChannel($name = md5($config), [$config, $construct]);
$className = hash('sha384', $config);
$object = $this->getFromChannel($className, [$config, $construct]);
if (method_exists($object, 'clean')) {
$object->clean();
}