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++;