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