From 402f30f628cd72bad632f56b9e240d5755eaa3b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 3 Aug 2023 11:34:22 +0800 Subject: [PATCH] qqq --- src/Annotate/AutoController.php | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/Annotate/AutoController.php diff --git a/src/Annotate/AutoController.php b/src/Annotate/AutoController.php deleted file mode 100644 index 6e9c51b..0000000 --- a/src/Annotate/AutoController.php +++ /dev/null @@ -1,31 +0,0 @@ -getReflectionClass($object::class); - foreach ($reflection->getMethods() as $method) { - $attributes = $method->getAttributes(); - foreach ($attributes as $attribute) { - if (!class_exists($attribute->getName())) { - continue; - } - $attribute->newInstance()->dispatch($object, $method->getName()); - } - } - - } - -}