改名
This commit is contained in:
@@ -378,7 +378,6 @@ class Server extends HttpService
|
|||||||
$service = Snowflake::app()->get('rpc-service');
|
$service = Snowflake::app()->get('rpc-service');
|
||||||
$service->instance($this->swoole);
|
$service->instance($this->swoole);
|
||||||
}
|
}
|
||||||
$this->onLoadHttpHandler();
|
|
||||||
return $this->swoole;
|
return $this->swoole;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -485,23 +484,6 @@ class Server extends HttpService
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Load router handler
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public function onLoadHttpHandler()
|
|
||||||
{
|
|
||||||
$event = Snowflake::app()->getEvent();
|
|
||||||
$event->on(Event::SERVER_WORKER_START, function () {
|
|
||||||
$system = Snowflake::app();
|
|
||||||
|
|
||||||
$system->getRouter()->loadRouterSetting();
|
|
||||||
|
|
||||||
$system->getAnnotation()->instanceDirectoryFiles(APP_PATH);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $type
|
* @param $type
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
Reference in New Issue
Block a user