改名
This commit is contained in:
@@ -30,6 +30,9 @@ class ServerWorker extends \Server\Abstracts\Server
|
|||||||
$annotation = Snowflake::app()->getAnnotation();
|
$annotation = Snowflake::app()->getAnnotation();
|
||||||
$annotation->read(APP_PATH);
|
$annotation->read(APP_PATH);
|
||||||
|
|
||||||
|
$loader = Snowflake::app()->getRouter();
|
||||||
|
$loader->_loader();
|
||||||
|
|
||||||
$this->runEvent(Constant::WORKER_START, null, [$server, $workerId]);
|
$this->runEvent(Constant::WORKER_START, null, [$server, $workerId]);
|
||||||
if ($workerId >= $server->setting['worker_num'] + 1) {
|
if ($workerId >= $server->setting['worker_num'] + 1) {
|
||||||
$annotation->runtime(CONTROLLER_PATH);
|
$annotation->runtime(CONTROLLER_PATH);
|
||||||
|
|||||||
Reference in New Issue
Block a user