This commit is contained in:
2020-12-15 17:01:24 +08:00
parent 2c63ee8e81
commit b54710f2a3
+3 -3
View File
@@ -207,9 +207,9 @@ class Server extends Application
return; return;
} }
$attributes = Snowflake::app()->getAttributes(); // $attributes = Snowflake::app()->getAttributes();
$attributes->readControllers(CONTROLLER_PATH, 'App\Http\Controllers', 'controllers'); // $attributes->readControllers(CONTROLLER_PATH, 'App\Http\Controllers', 'controllers');
$attributes->readControllers(SOCKET_PATH, 'App\Websocket', 'sockets'); // $attributes->readControllers(SOCKET_PATH, 'App\Websocket', 'sockets');
$processes = Config::get('processes'); $processes = Config::get('processes');
if (!empty($processes) && is_array($processes)) { if (!empty($processes) && is_array($processes)) {