fix swoole hook check

This commit is contained in:
crazywhalecc 2024-02-04 11:25:35 +08:00 committed by Jerry Ma
parent 0b1a321615
commit 06e9864d19
4 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

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