This commit is contained in:
2021-02-20 13:02:58 +08:00
parent 874085f97a
commit d05cb47f66
18 changed files with 56 additions and 49 deletions
+1 -1
View File
@@ -314,7 +314,7 @@ class Server extends Application
if (!is_array($config['events'])) {
return;
}
$event = Snowflake::app()->event;
$event = Snowflake::app()->getEvent();
foreach ($config['events'] as $name => $_event) {
$event->on($name, $_event);
}