From dfa7ebf5211cb536d7b67ac0ed76a1ce7e38dfd1 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 24 Apr 2021 16:34:19 +0800 Subject: [PATCH] modify --- Annotation/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 698b4e91..75fa57ff 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -400,7 +400,7 @@ class Loader extends BaseObject continue; } - $class = Snowflake::createObject($className['handler']); + $class = Snowflake::createObject($annotations['handler']); foreach ($annotations['target'] ?? [] as $value) { $value->execute([$class]); }