This commit is contained in:
2020-12-15 14:07:19 +08:00
parent a37df0ce7a
commit 5d854fdcd5
+5
View File
@@ -208,6 +208,11 @@ class Server extends Application
if (!($this->baseServer instanceof \Swoole\Server)) {
return;
}
$attributes = Snowflake::app()->getAttributes();
$attributes->readControllers(CONTROLLER_PATH, 'controllers');
$attributes->readControllers(SOCKET_PATH, 'sockets');
$processes = Config::get('processes');
if (!empty($processes) && is_array($processes)) {
$this->deliveryProcess(merge($processes, $this->process));