From b9e049398009649e4f3e7d2589be682d5546a430 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 21 Sep 2021 00:45:30 +0800 Subject: [PATCH] 111 --- http-handler/Abstracts/Handler.php | 22 ---------------------- http-server/Service/Http.php | 4 ---- 2 files changed, 26 deletions(-) diff --git a/http-handler/Abstracts/Handler.php b/http-handler/Abstracts/Handler.php index 2f0da962..c05fd54e 100644 --- a/http-handler/Abstracts/Handler.php +++ b/http-handler/Abstracts/Handler.php @@ -49,28 +49,6 @@ abstract class Handler implements RequestHandlerInterface } - /** - * @param CHl $handler - * @return $this - */ - public function setHandler(CHl $handler): static - { - $this->handler = $handler; - return $this; - } - - - /** - * @param array|null $middlewares - * @return $this - */ - public function setMiddlewares(?array $middlewares): static - { - $this->middlewares = $middlewares; - return $this; - } - - /** * @param ServerRequestInterface $request * @return ResponseInterface diff --git a/http-server/Service/Http.php b/http-server/Service/Http.php index b1832e77..f0562569 100644 --- a/http-server/Service/Http.php +++ b/http-server/Service/Http.php @@ -29,10 +29,6 @@ class Http extends \Server\Abstracts\Http implements OnClose, OnConnect { - #[Inject(Dispatcher::class)] - public Dispatcher $dispatcher; - - /** * @param Server $server * @param int $fd