From 56c8befe83544ff72b5637127c213349a2f1763f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 16:19:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/FileListen/FileChangeCustomProcess.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 33fb2bcb..e0c10a55 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -4,6 +4,7 @@ namespace Kiri\FileListen; use Exception; use Kiri\Abstracts\Config; +use Kiri\Exception\ConfigException; use Kiri\Kiri; use Swoole\Coroutine\Barrier; use Swoole\Process; @@ -34,13 +35,17 @@ class FileChangeCustomProcess extends Command protected function configure() { $this->setName('sw:wather') - ->setDescription('server start|stop|reload|restart') + ->setDescription('server start') ->addArgument('action', InputArgument::REQUIRED); } /** - * @param Process $process + * @param InputInterface $input + * @param OutputInterface $output + * @return int + * @throws ConfigException + * @throws \Swoole\Exception * @throws Exception */ public function execute(InputInterface $input, OutputInterface $output): int