From 405e6f46a21e837d6a6b7f4692cd496f7d8f9865 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 3 Apr 2021 01:24:58 +0800 Subject: [PATCH] modify --- Annotation/Loader.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 9adef56a..0894dbd3 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -185,11 +185,7 @@ class Loader extends BaseObject if (!class_exists($attribute->getName())) { continue; } - $property = $attribute->newInstance(); - if ($property instanceof Inject) { - $property->execute([$_array['handler'], $method]); - } - $_property[] = $property; + $_property[] = $attribute->newInstance(); } $_array['property'][$method->getName()] = $_property; }