From 27f4df60f29c3e7acd2c0644a4f5904c709fe261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=BD=AA?= Date: Fri, 14 Jun 2019 16:24:35 +0800 Subject: [PATCH] check swoole extension while starting --- src/Console/Portal.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Console/Portal.php b/src/Console/Portal.php index 26808a5d..51db435c 100644 --- a/src/Console/Portal.php +++ b/src/Console/Portal.php @@ -102,6 +102,11 @@ protected function execute(InputInterface $input, OutputInterface $output) public function start() { + if (!extension_loaded('swoole')) { + $this->error('LaravelS requires swoole extension, try to `pecl install swoole` and `php --ri swoole`.'); + return 1; + } + // Initialize configuration config/laravels.json $options = $this->input->getOptions(); unset($options['env']);