From 39065871191489688a4bb898b54a4286b9ec33be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 31 Aug 2020 23:21:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-server/Route/Router.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http-server/Route/Router.php b/http-server/Route/Router.php index a7c6a48b..07470da4 100644 --- a/http-server/Route/Router.php +++ b/http-server/Route/Router.php @@ -511,9 +511,9 @@ class Router extends Application implements RouterInterface $prefix = APP_PATH . 'app/Http/'; /** @var Annotation $annotation */ - $annotation = make(Annotation::class, Annotation::class); - $annotation->registration_notes($prefix . 'Interceptor', 'App\Http\Interceptor'); - $annotation->registration_notes($prefix . 'Limits', 'App\Http\Limits'); + $annotation = Snowflake::get()->annotation->getHttp(); + $annotation->registration_notes($prefix . 'Interceptor', 'App\Http\Interceptor',Annotation::class); + $annotation->registration_notes($prefix . 'Limits', 'App\Http\Limits',Annotation::class); include_once "$file"; }