This commit is contained in:
2021-03-30 19:57:58 +08:00
parent b8d4fbce8e
commit 4a86077e72
+1 -1
View File
@@ -36,7 +36,7 @@ if (!function_exists('make')) {
function make($name, $default = null): mixed
{
if (class_exists($name)) {
return Snowflake::createObject($default);
return Snowflake::createObject($name);
}
if (Snowflake::has($name)) {
return Snowflake::app()->get($name);