Skip to content

Commit

Permalink
check swoole extension while starting
Browse files Browse the repository at this point in the history
  • Loading branch information
hhxsv5 committed Jun 14, 2019
1 parent 0dfe380 commit 27f4df6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Console/Portal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 27f4df6

Please sign in to comment.