This commit is contained in:
2021-12-23 18:22:26 +08:00
parent bffe375230
commit 2feda943af
6 changed files with 23 additions and 10 deletions
+4 -2
View File
@@ -4,6 +4,7 @@ namespace Server\Handler;
use Note\Inject;
use Kiri\Events\EventDispatch;
use ReflectionException;
use Server\Abstracts\Server;
use Kiri\Exception\ConfigException;
use Server\Events\OnManagerStart;
@@ -26,8 +27,8 @@ class OnServerManager extends Server
/**
* @param \Swoole\Server $server
* @throws ConfigException
*/
* @throws ConfigException|ReflectionException
*/
public function onManagerStart(\Swoole\Server $server)
{
$this->setProcessName(sprintf('manger[%d].0', $server->manager_pid));
@@ -38,6 +39,7 @@ class OnServerManager extends Server
/**
* @param \Swoole\Server $server
* @throws ReflectionException
*/
public function onManagerStop(\Swoole\Server $server)
{