This commit is contained in:
2021-02-23 17:19:46 +08:00
parent 21bdf32fc3
commit 31d5024663
10 changed files with 41 additions and 26 deletions
+16
View File
@@ -218,6 +218,22 @@ if (!function_exists('fire')) {
}
if (!function_exists('objectPool')) {
/**
* @param string $className
* @param array $construct
* @return mixed
* @throws ComponentException
* @throws Exception
*/
function objectPool(mixed $className, array $construct = []): mixed
{
return Snowflake::app()->getObject()->load($className, $construct);
}
}
if (!function_exists('instance_load')) {
function instance_load()