This commit is contained in:
2021-02-24 14:22:56 +08:00
parent c704dc05eb
commit 19775e937e
7 changed files with 35 additions and 18 deletions
+2 -3
View File
@@ -222,12 +222,11 @@ if (!function_exists('objectPool')) {
/**
* @param string $className
* @param array $construct
* @param callable $construct
* @return mixed
* @throws ComponentException
* @throws Exception
*/
function objectPool(mixed $className, array $construct = []): mixed
function objectPool(mixed $className, callable $construct): mixed
{
return Snowflake::app()->getObject()->load($className, $construct);
}