This commit is contained in:
2022-01-09 03:49:02 +08:00
parent b5ad99332d
commit 550197de96
44 changed files with 2113 additions and 2113 deletions
+18 -18
View File
@@ -1,18 +1,18 @@
<?php
namespace Server\Events;
use Swoole\Server;
class OnAfterReload
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
class OnAfterReload
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
+8 -8
View File
@@ -1,8 +1,8 @@
<?php
namespace Server\Events;
class OnAfterWorkerStart
{
}
<?php
namespace Server\Events;
class OnAfterWorkerStart
{
}
+18 -18
View File
@@ -1,18 +1,18 @@
<?php
namespace Server\Events;
use Swoole\Server;
class OnBeforeReload
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
class OnBeforeReload
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
+18 -18
View File
@@ -1,18 +1,18 @@
<?php
namespace Server\Events;
use Swoole\Server;
class OnBeforeShutdown
{
/**
* @param Server|null $server
*/
public function __construct(public ?Server $server = null)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
class OnBeforeShutdown
{
/**
* @param Server|null $server
*/
public function __construct(public ?Server $server = null)
{
}
}
+12 -12
View File
@@ -1,12 +1,12 @@
<?php
namespace Server\Events;
class OnBeforeWorkerStart
{
public function __construct(public int $workerId)
{
}
}
<?php
namespace Server\Events;
class OnBeforeWorkerStart
{
public function __construct(public int $workerId)
{
}
}
+16 -16
View File
@@ -1,16 +1,16 @@
<?php
namespace Server\Events;
use Swoole\Server;
class OnManagerStart
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
class OnManagerStart
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
+18 -18
View File
@@ -1,18 +1,18 @@
<?php
namespace Server\Events;
use Swoole\Server;
class OnManagerStop
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
class OnManagerStop
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
+8 -8
View File
@@ -1,8 +1,8 @@
<?php
namespace Server\Events;
class OnServerBeforeStart
{
}
<?php
namespace Server\Events;
class OnServerBeforeStart
{
}
+18 -18
View File
@@ -1,18 +1,18 @@
<?php
namespace Server\Events;
use Swoole\Server;
class OnShutdown
{
/**
* @param Server|null $server
*/
public function __construct(public ?Server $server = null)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
class OnShutdown
{
/**
* @param Server|null $server
*/
public function __construct(public ?Server $server = null)
{
}
}
+18 -18
View File
@@ -1,18 +1,18 @@
<?php
namespace Server\Events;
use Swoole\Server;
class OnStart
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
class OnStart
{
/**
* @param Server $server
*/
public function __construct(public Server $server)
{
}
}
+23 -23
View File
@@ -1,23 +1,23 @@
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnTaskerStart
{
/**
* @param Server $server
* @param int $workerId
*/
public function __construct(public Server $server, public int $workerId)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnTaskerStart
{
/**
* @param Server $server
* @param int $workerId
*/
public function __construct(public Server $server, public int $workerId)
{
}
}
+26 -26
View File
@@ -1,26 +1,26 @@
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnWorkerError
{
/**
* @param Server $server
* @param int $worker_id
* @param int $worker_pid
* @param int $exit_code
* @param int $signal
*/
public function __construct(public Server $server, public int $worker_id, public int $worker_pid, public int $exit_code, public int $signal)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnWorkerError
{
/**
* @param Server $server
* @param int $worker_id
* @param int $worker_pid
* @param int $exit_code
* @param int $signal
*/
public function __construct(public Server $server, public int $worker_id, public int $worker_pid, public int $exit_code, public int $signal)
{
}
}
+23 -23
View File
@@ -1,23 +1,23 @@
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnWorkerExit
{
/**
* @param Server $server
* @param int $workerId
*/
public function __construct(public Server $server, public int $workerId)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnWorkerExit
{
/**
* @param Server $server
* @param int $workerId
*/
public function __construct(public Server $server, public int $workerId)
{
}
}
+23 -23
View File
@@ -1,23 +1,23 @@
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnWorkerStart
{
/**
* @param Server $server
* @param int $workerId
*/
public function __construct(public Server $server, public int $workerId)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnWorkerStart
{
/**
* @param Server $server
* @param int $workerId
*/
public function __construct(public Server $server, public int $workerId)
{
}
}
+23 -23
View File
@@ -1,23 +1,23 @@
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnWorkerStop
{
/**
* @param Server $server
* @param int $workerId
*/
public function __construct(public Server $server, public int $workerId)
{
}
}
<?php
namespace Server\Events;
use Swoole\Server;
/**
*
*/
class OnWorkerStop
{
/**
* @param Server $server
* @param int $workerId
*/
public function __construct(public Server $server, public int $workerId)
{
}
}