From 06e9864d199bbaf6289fb380751941a1b647459f Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 4 Feb 2024 11:25:35 +0800 Subject: [PATCH] fix swoole hook check --- src/SPC/builder/extension/swoole_hook_mysql.php | 2 +- src/SPC/builder/extension/swoole_hook_pgsql.php | 2 +- src/SPC/builder/extension/swoole_hook_sqlite.php | 2 +- src/SPC/command/DownloadCommand.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SPC/builder/extension/swoole_hook_mysql.php b/src/SPC/builder/extension/swoole_hook_mysql.php index 6a239976..b24ac955 100644 --- a/src/SPC/builder/extension/swoole_hook_mysql.php +++ b/src/SPC/builder/extension/swoole_hook_mysql.php @@ -18,7 +18,7 @@ class swoole_hook_mysql extends Extension return ''; } - public function runCliCheck(): void + public function runCliCheckUnix(): void { // skip if not enable swoole if ($this->builder->getExt('swoole') === null) { diff --git a/src/SPC/builder/extension/swoole_hook_pgsql.php b/src/SPC/builder/extension/swoole_hook_pgsql.php index 93e6172c..e2ebf8b5 100644 --- a/src/SPC/builder/extension/swoole_hook_pgsql.php +++ b/src/SPC/builder/extension/swoole_hook_pgsql.php @@ -22,7 +22,7 @@ class swoole_hook_pgsql extends Extension return '--enable-swoole-pgsql'; } - public function runCliCheck(): void + public function runCliCheckUnix(): void { // skip if not enable swoole if ($this->builder->getExt('swoole') === null) { diff --git a/src/SPC/builder/extension/swoole_hook_sqlite.php b/src/SPC/builder/extension/swoole_hook_sqlite.php index 714c83b6..564cf241 100644 --- a/src/SPC/builder/extension/swoole_hook_sqlite.php +++ b/src/SPC/builder/extension/swoole_hook_sqlite.php @@ -22,7 +22,7 @@ class swoole_hook_sqlite extends Extension return '--enable-swoole-sqlite'; } - public function runCliCheck(): void + public function runCliCheckUnix(): void { // skip if not enable swoole if ($this->builder->getExt('swoole') === null) { diff --git a/src/SPC/command/DownloadCommand.php b/src/SPC/command/DownloadCommand.php index 7ee74d77..542dae34 100644 --- a/src/SPC/command/DownloadCommand.php +++ b/src/SPC/command/DownloadCommand.php @@ -116,7 +116,7 @@ class DownloadCommand extends BaseCommand // get source list that will be downloaded $sources = array_map('trim', array_filter(explode(',', $this->getArgument('sources')))); if (empty($sources)) { - logger()->warning('Downloading with --all option will take more times to download, we recommend you to download with --for-extensions option !'); + logger()->notice('Downloading with --all option will take more times to download, we recommend you to download with --for-extensions option !'); $sources = array_keys(Config::getSources()); } }