Skip to content

Commit

Permalink
Update LaravelWorkerman.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ysnow8 authored Jul 25, 2023
1 parent 7212d32 commit 45a4504
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/consloe/LaravelWorkerman.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public function handle()
case 'start':
$this->start();
break;
case 'stop':
$this->stop();
case 'status':
$this->status();
break;
}
}
Expand All @@ -44,15 +44,11 @@ protected function start()
$text_worker->count = $count;
$text_worker->name = $name;
$class = Config::get('laravel-workerman.Events');
// 绑定 函数
$this->worker_bind($text_worker, $class);
Worker::runAll();
}

protected function stop()
{
$argv = 'stop';
Worker::runAll();
}

protected function status()
{
Expand All @@ -79,4 +75,4 @@ protected function worker_bind($worker, $class)
}
}
}
}
}

0 comments on commit 45a4504

Please sign in to comment.