改名
This commit is contained in:
@@ -36,6 +36,8 @@ class OnWorkerStart extends Callback
|
||||
putenv('worker=' . $worker_id);
|
||||
putenv('state=start');
|
||||
|
||||
annotation()->read(APP_PATH . 'app', 'App');
|
||||
|
||||
if ($worker_id >= $server->setting['worker_num']) {
|
||||
$this->onTask($server, $worker_id);
|
||||
} else {
|
||||
|
||||
@@ -108,9 +108,6 @@ class Application extends BaseApplication
|
||||
public function start(Input $argv): void
|
||||
{
|
||||
try {
|
||||
$annotation = $this->getAttributes();
|
||||
$annotation->read(APP_PATH . 'app', 'App');
|
||||
|
||||
fire(Event::SERVER_BEFORE_START);
|
||||
|
||||
$this->set('input', $argv);
|
||||
|
||||
Reference in New Issue
Block a user