From e96f01dbb14e09b5aebcc51b45efbd79c0e5a76f Mon Sep 17 00:00:00 2001 From: sy-records <52o@qq52o.cn> Date: Tue, 13 Apr 2021 13:53:50 +0800 Subject: [PATCH] Fix typo and Update README --- README.md | 1 + src/Handler/SubscribeHandler.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c1ff8b8..9be4b82 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ Options: --config-path[=CONFIG-PATH] Setting the Swoole config file path --properties-path[=PROPERTIES-PATH] Setting the Properties config file path -U, --unsubscribe[=UNSUBSCRIBE] Topics that need to be unsubscribed (multiple values allowed) + -e, --event[=EVENT] Subscribed EventDispatcher [default: ""] -h, --help Display help for the given command. When no command is given display help for the list command -q, --quiet Do not output any message -V, --version Display this application version diff --git a/src/Handler/SubscribeHandler.php b/src/Handler/SubscribeHandler.php index c8a95a3..a529f3c 100644 --- a/src/Handler/SubscribeHandler.php +++ b/src/Handler/SubscribeHandler.php @@ -105,7 +105,6 @@ public function handle(InputInterface $input, OutputInterface $output): int $this->log(json_encode($buffer)); $event = $this->getEvent(); if (!empty($event) && class_exists($event)) { - echo 'sas'; (new EventDispatcher())->dispatch(new $event($client, $input, $output)); } }