From fb8406cced6b72c138884e4b74f966837edfb94c Mon Sep 17 00:00:00 2001 From: McFog Wang Date: Sun, 20 Oct 2019 23:42:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20remove=20events?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see litphp/litphp#3 --- RoadRunnerWorker.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/RoadRunnerWorker.php b/RoadRunnerWorker.php index 3af39ca..557a645 100644 --- a/RoadRunnerWorker.php +++ b/RoadRunnerWorker.php @@ -15,10 +15,6 @@ */ class RoadRunnerWorker { - const EVENT_LOOP_FINAL = 'rr.request.final'; - const EVENT_LOOP_AFTER_RESPOND = 'rr.request.after_respond'; - const EVENT_LOOP_ERROR = 'rr.request.error'; - /** * @var PSR7Client */ @@ -67,12 +63,8 @@ protected function loop() $resp = $this->app->handle($req); $this->psr7->respond($resp); - $this->app->getEventsHub()->dispatch(static::EVENT_LOOP_AFTER_RESPOND); } catch (\Throwable $e) { $this->psr7->getWorker()->error((string)$e); - $this->app->getEventsHub()->dispatch(static::EVENT_LOOP_ERROR); - } finally { - $this->app->getEventsHub()->dispatch(static::EVENT_LOOP_FINAL); } $reqCount++;