From dc09566ea387493117b2cf0f8baac1feb6a873b9 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 29 Aug 2021 05:59:50 +0800 Subject: [PATCH] 111 --- http-helper/Route/Router.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/http-helper/Route/Router.php b/http-helper/Route/Router.php index e3d38ab4..21448d67 100644 --- a/http-helper/Route/Router.php +++ b/http-helper/Route/Router.php @@ -577,20 +577,20 @@ class Router extends HttpService implements RouterInterface public function _loader() { $this->loadRouteDir(APP_PATH . 'routes'); - $classes = Kiri::getAnnotation()->runtime(CONTROLLER_PATH); +// $classes = Kiri::getAnnotation()->runtime(CONTROLLER_PATH); - $di = Kiri::getDi(); - foreach ($classes as $class) { - $methods = $di->getMethodAttribute($class); - foreach ($methods as $method => $attribute) { - if (empty($attribute)) { - continue; - } - foreach ($attribute as $item) { - $item->execute($class, $method); - } - } - } +// $di = Kiri::getDi(); +// foreach ($classes as $class) { +// $methods = $di->getMethodAttribute($class); +// foreach ($methods as $method => $attribute) { +// if (empty($attribute)) { +// continue; +// } +// foreach ($attribute as $item) { +// $item->execute($class, $method); +// } +// } +// } } /**