改名
This commit is contained in:
@@ -38,9 +38,7 @@ class ObjectPool extends \Snowflake\Abstracts\Pool
|
||||
if (is_object($config)) {
|
||||
return $config;
|
||||
}
|
||||
$object = $this->getFromChannel($name = md5($config), [$config, $construct]);
|
||||
listen(Event::EVENT_AFTER_REQUEST, [$this, 'release'], [$name, $object]);
|
||||
return $object;
|
||||
return $this->getFromChannel($name = md5($config), [$config, $construct]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user