Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-20 19:04:15 +08:00
parent bcd78aba56
commit d22db391f3
8 changed files with 21 additions and 57 deletions
+2 -9
View File
@@ -16,20 +16,13 @@ class OnServerReload
{
/**
* @var EventDispatch
*/
#[Inject(EventDispatch::class)]
public EventDispatch $eventDispatch;
/**
* @param Server $server
* @throws \ReflectionException
*/
public function onBeforeReload(Server $server)
{
$this->eventDispatch->dispatch(new OnBeforeReload($server));
\Kiri::getDi()->get(EventDispatch::class)->dispatch(new OnBeforeReload($server));
}
@@ -39,7 +32,7 @@ class OnServerReload
*/
public function onAfterReload(Server $server)
{
$this->eventDispatch->dispatch(new OnAfterReload($server));
\Kiri::getDi()->get(EventDispatch::class)->dispatch(new OnAfterReload($server));
}
}