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)); } }