eee
This commit is contained in:
@@ -2,14 +2,17 @@
|
||||
|
||||
namespace Kiri\Server\Events;
|
||||
|
||||
use Swoole\Server;
|
||||
|
||||
class OnAfterWorkerStart
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param int $workerId
|
||||
*/
|
||||
public function __construct(public int $workerId)
|
||||
public function __construct(public Server $server, public int $workerId)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -2,10 +2,16 @@
|
||||
|
||||
namespace Kiri\Server\Events;
|
||||
|
||||
use Swoole\Server;
|
||||
|
||||
class OnBeforeWorkerStart
|
||||
{
|
||||
|
||||
public function __construct(public int $workerId)
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param int $workerId
|
||||
*/
|
||||
public function __construct(public Server $server,public int $workerId)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user