This commit is contained in:
as2252258@163.com
2021-08-29 01:18:42 +08:00
parent e3f02b51bc
commit 9da50baed0
4 changed files with 148 additions and 11 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ class OnServerWorker extends \Server\Abstracts\Server
{
$this->eventDispatch->dispatch(new OnWorkerStart($server, $workerId));
$this->onWorkerStartInit($server, $workerId);
// $this->onWorkerStartInit($server, $workerId);
$this->eventDispatch->dispatch(new OnAfterWorkerStart());
}
@@ -68,14 +68,14 @@ class OnServerWorker extends \Server\Abstracts\Server
if (!empty($serialize)) {
Config::sets(unserialize($serialize));
}
$this->workerInitExecutor($server, $workerId);
if (is_enable_file_modification_listening()) {
$annotation = Kiri::app()->getAnnotation();
$annotation->read(APP_PATH . 'app', 'App',
$workerId < $server->setting['worker_num'] ? [] : [CONTROLLER_PATH]
);
$this->interpretDirectory($annotation);
}
$this->interpretDirectory($annotation);
$this->workerInitExecutor($server, $workerId);
}