From 905d3ec2c8ba24dccecf1654c01278da8d63567d Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 02:34:58 +0800 Subject: [PATCH] modify --- System/Snowflake.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index db5964b2..42f95471 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -99,9 +99,7 @@ class Snowflake if (!isset($className['class']) || empty($className['class'])) { throw new Exception('Object configuration must be an array containing a "class" element.'); } - $class = $className['class']; - unset($className['class']); - return static::$container->get($class, $construct, $className); + return static::$container->get($className['class'], $construct, $className); } else if (is_callable($className, TRUE)) { return call_user_func($className, $construct); } else {