改名
This commit is contained in:
@@ -464,9 +464,7 @@ class Server extends HttpService
|
|||||||
$event = Snowflake::app()->getEvent();
|
$event = Snowflake::app()->getEvent();
|
||||||
$event->on(Event::SERVER_WORKER_START, function () {
|
$event->on(Event::SERVER_WORKER_START, function () {
|
||||||
$annotation = Snowflake::app()->getAttributes();
|
$annotation = Snowflake::app()->getAttributes();
|
||||||
if (env('debug') != 'true') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$router = Snowflake::app()->getRouter();
|
$router = Snowflake::app()->getRouter();
|
||||||
|
|
||||||
$annotation->instanceDirectoryFiles(CONTROLLER_PATH);
|
$annotation->instanceDirectoryFiles(CONTROLLER_PATH);
|
||||||
@@ -484,9 +482,6 @@ class Server extends HttpService
|
|||||||
$event = Snowflake::app()->getEvent();
|
$event = Snowflake::app()->getEvent();
|
||||||
$event->on(Event::SERVER_WORKER_START, function () {
|
$event->on(Event::SERVER_WORKER_START, function () {
|
||||||
$annotation = Snowflake::app()->getAttributes();
|
$annotation = Snowflake::app()->getAttributes();
|
||||||
if (env('debug') != 'true') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$annotation->instanceDirectoryFiles(SOCKET_PATH);
|
$annotation->instanceDirectoryFiles(SOCKET_PATH);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user