From 0e0bd39a39f5c9e98a8fbeb24233193e515a04ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 17 Aug 2023 16:08:33 +0800 Subject: [PATCH] qqq --- src/Annotate/Delete.php | 1 + src/Annotate/Get.php | 1 + src/Annotate/Head.php | 1 + src/Annotate/Options.php | 1 + src/Annotate/Post.php | 1 + src/Annotate/Put.php | 1 + src/Annotate/Route.php | 2 ++ 7 files changed, 8 insertions(+) diff --git a/src/Annotate/Delete.php b/src/Annotate/Delete.php index 4fbf33f..a07a1af 100644 --- a/src/Annotate/Delete.php +++ b/src/Annotate/Delete.php @@ -36,6 +36,7 @@ class Delete extends AbstractRequestMethod implements InjectRouteInterface { // TODO: Implement dispatch() method. $path = '/' . ltrim($this->path, '/'); + var_dump($path); Router::addRoute(RequestMethod::REQUEST_DELETE, $path, [$class, $method]); if ($this->enableOption) { diff --git a/src/Annotate/Get.php b/src/Annotate/Get.php index a2243a6..3709a34 100644 --- a/src/Annotate/Get.php +++ b/src/Annotate/Get.php @@ -36,6 +36,7 @@ class Get extends AbstractRequestMethod implements InjectRouteInterface { // TODO: Implement dispatch() method. $path = '/' . ltrim($this->path, '/'); + var_dump($path); Router::addRoute(RequestMethod::REQUEST_GET, $path, [$class, $method]); if ($this->enableOption) { diff --git a/src/Annotate/Head.php b/src/Annotate/Head.php index a7a0e69..2452548 100644 --- a/src/Annotate/Head.php +++ b/src/Annotate/Head.php @@ -34,6 +34,7 @@ class Head extends AbstractRequestMethod implements InjectRouteInterface { // TODO: Implement dispatch() method. $path = '/' . ltrim($this->path, '/'); + var_dump($path); Router::addRoute(RequestMethod::REQUEST_HEAD, $path, [$class, $method]); } diff --git a/src/Annotate/Options.php b/src/Annotate/Options.php index 19e7b19..5a5afff 100644 --- a/src/Annotate/Options.php +++ b/src/Annotate/Options.php @@ -34,6 +34,7 @@ class Options extends AbstractRequestMethod implements InjectRouteInterface { // TODO: Implement dispatch() method. $path = '/' . ltrim($this->path, '/'); + var_dump($path); Router::addRoute(RequestMethod::REQUEST_OPTIONS, $path, [$class, $method]); } diff --git a/src/Annotate/Post.php b/src/Annotate/Post.php index 82d89d9..a3b95d3 100644 --- a/src/Annotate/Post.php +++ b/src/Annotate/Post.php @@ -36,6 +36,7 @@ class Post extends AbstractRequestMethod implements InjectRouteInterface { // TODO: Implement dispatch() method. $path = '/' . ltrim($this->path, '/'); + var_dump($path); Router::addRoute(RequestMethod::REQUEST_POST, $path, [$class, $method]); if ($this->enableOption) { diff --git a/src/Annotate/Put.php b/src/Annotate/Put.php index bd9b0b6..9948d92 100644 --- a/src/Annotate/Put.php +++ b/src/Annotate/Put.php @@ -36,6 +36,7 @@ class Put extends AbstractRequestMethod implements InjectRouteInterface { // TODO: Implement dispatch() method. $path = '/' . ltrim($this->path, '/'); + var_dump($path); Router::addRoute(RequestMethod::REQUEST_PUT, $path, [$class, $method]); if ($this->enableOption) { diff --git a/src/Annotate/Route.php b/src/Annotate/Route.php index c4d55ba..3856b52 100644 --- a/src/Annotate/Route.php +++ b/src/Annotate/Route.php @@ -33,6 +33,8 @@ class Route extends AbstractRequestMethod implements InjectRouteInterface // TODO: Implement dispatch() method. $path = '/' . ltrim($this->path, '/'); + var_dump($path); + Router::addRoute([$this->method], $path, [$class, $method]); } }