This commit is contained in:
2023-10-24 17:22:28 +08:00
parent a1d80c3315
commit f8b557d88a
8 changed files with 11 additions and 41 deletions
-1
View File
@@ -7,7 +7,6 @@ namespace Kiri\Server\Handler;
use Exception;
use Kiri;
use Kiri\Core\Xml;
use Kiri\Core\Json;
use Kiri\Di\Inject\Container;
use Kiri\Di\Context;
use Kiri\Di\Interface\ResponseEmitterInterface;
-4
View File
@@ -33,8 +33,6 @@ class OnServer extends Server
/**
* @param SServer $server
* @throws ReflectionException
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function onStart(SServer $server): void
{
@@ -48,8 +46,6 @@ class OnServer extends Server
/**
* @param SServer $server
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws ReflectionException
*/
public function onBeforeShutdown(SServer $server): void
+2 -6
View File
@@ -3,8 +3,6 @@
namespace Kiri\Server\Handler;
use Kiri;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use ReflectionException;
use Kiri\Server\Abstracts\Server;
use Kiri\Server\Events\OnManagerStart;
@@ -21,8 +19,7 @@ class OnServerManager extends Server
/**
* @param \Swoole\Server $server
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface|ReflectionException
* @throws ReflectionException
*/
public function onManagerStart(\Swoole\Server $server): void
{
@@ -35,8 +32,7 @@ class OnServerManager extends Server
/**
* @param \Swoole\Server $server
* @return void
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface|ReflectionException
* @throws ReflectionException
*/
public function onManagerStop(\Swoole\Server $server): void
{
+2 -8
View File
@@ -32,8 +32,6 @@ class OnServerWorker extends \Kiri\Server\Abstracts\Server
* @param Server $server
* @param int $workerId
* @return void
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws Exception
*/
public function onWorkerStart(Server $server, int $workerId): void
@@ -71,8 +69,7 @@ class OnServerWorker extends \Kiri\Server\Abstracts\Server
/**
* @param Server $server
* @param int $workerId
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface|ReflectionException
* @throws ReflectionException
*/
public function onWorkerStop(Server $server, int $workerId): void
{
@@ -84,8 +81,7 @@ class OnServerWorker extends \Kiri\Server\Abstracts\Server
/**
* @param Server $server
* @param int $workerId
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface|ReflectionException
* @throws ReflectionException
*/
public function onWorkerExit(Server $server, int $workerId): void
{
@@ -99,8 +95,6 @@ class OnServerWorker extends \Kiri\Server\Abstracts\Server
* @param int $worker_pid
* @param int $exit_code
* @param int $signal
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws Exception
*/
public function onWorkerError(Server $server, int $worker_id, int $worker_pid, int $exit_code, int $signal): void