From c2692d8a690e684b3f87c17bc5a5b67b9bdc3c25 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 03:38:15 +0800 Subject: [PATCH] modify --- HttpServer/Server.php | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/HttpServer/Server.php b/HttpServer/Server.php index 925f842f..3a753b52 100644 --- a/HttpServer/Server.php +++ b/HttpServer/Server.php @@ -462,20 +462,19 @@ class Server extends HttpService $attributes = Snowflake::app()->getAttributes(); $attributes->readControllers(CONTROLLER_PATH, 'App\Http\Controllers', 'controllers'); - - $aliases = $attributes->getAlias('controllers'); - var_dump($aliases); - if (count($aliases) < 1) { - return; - } - foreach ($aliases as $alias) { - $handler = $alias['handler']; - foreach ($alias['attributes'] as $key => $attribute) { - if ($attribute instanceof IAnnotation) { - $attribute->execute($handler); - } - } - } +// +// $aliases = $attributes->getAlias('controllers'); +// if (count($aliases) < 1) { +// return; +// } +// foreach ($aliases as $alias) { +// $handler = $alias['handler']; +// foreach ($alias['attributes'] as $key => $attribute) { +// if ($attribute instanceof IAnnotation) { +// $attribute->execute($handler); +// } +// } +// } }); }