Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user