This commit is contained in:
2021-03-05 17:00:09 +08:00
parent 4c49bbbdd0
commit ae43f08207
+1 -6
View File
@@ -464,9 +464,7 @@ class Server extends HttpService
$event = Snowflake::app()->getEvent();
$event->on(Event::SERVER_WORKER_START, function () {
$annotation = Snowflake::app()->getAttributes();
if (env('debug') != 'true') {
return;
}
$router = Snowflake::app()->getRouter();
$annotation->instanceDirectoryFiles(CONTROLLER_PATH);
@@ -484,9 +482,6 @@ class Server extends HttpService
$event = Snowflake::app()->getEvent();
$event->on(Event::SERVER_WORKER_START, function () {
$annotation = Snowflake::app()->getAttributes();
if (env('debug') != 'true') {
return;
}
$annotation->instanceDirectoryFiles(SOCKET_PATH);
});
}