This commit is contained in:
2021-07-19 19:04:13 +08:00
parent 5aa94c1a25
commit b369e5c492
21 changed files with 952 additions and 616 deletions
+20 -5
View File
@@ -2,18 +2,33 @@
namespace Server\Manager;
class ServerManager
use Server\Abstracts\Server;
use Server\Constant;
/**
* Class ServerManager
* @package Server\Manager
*/
class ServerManager extends Server
{
public function onManagerStart()
/**
* @param \Swoole\Server $server
*/
public function onManagerStart(\Swoole\Server $server)
{
$this->runEvent(Constant::MANAGER_START, null, [$server]);
}
public function onManagerStop()
{
/**
* @param \Swoole\Server $server
*/
public function onManagerStop(\Swoole\Server $server)
{
$this->runEvent(Constant::MANAGER_STOP, null, [$server]);
}