改名
This commit is contained in:
+2
-8
@@ -60,13 +60,6 @@ class ServerManager
|
||||
public Logger $logger;
|
||||
|
||||
|
||||
/**
|
||||
* @var EventDispatch
|
||||
*/
|
||||
#[Inject(EventDispatch::class)]
|
||||
public EventDispatch $eventProvider;
|
||||
|
||||
|
||||
/**
|
||||
* @var State
|
||||
*/
|
||||
@@ -118,10 +111,11 @@ class ServerManager
|
||||
|
||||
/**
|
||||
* @return Server|WServer|HServer|null
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
public function getServer(): Server|WServer|HServer|null
|
||||
{
|
||||
$this->eventProvider->dispatch(new OnServerBeforeStart());
|
||||
di(EventDispatch::class)->dispatch(new OnServerBeforeStart());
|
||||
return $this->server;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user