modify plugin name

This commit is contained in:
2022-06-22 16:46:22 +08:00
parent dcc380e6b2
commit b85ba031f6
2 changed files with 3 additions and 18 deletions
+3 -3
View File
@@ -2,6 +2,7 @@
namespace Kiri\Server\Abstracts; namespace Kiri\Server\Abstracts;
use Kiri\Exception\ConfigException;
use Swoole\Http\Server as HServer; use Swoole\Http\Server as HServer;
use Swoole\Server; use Swoole\Server;
use Kiri\Server\Constant; use Kiri\Server\Constant;
@@ -18,12 +19,11 @@ trait TraitServer
/** /**
* @param array $class * @param array $class
* @return void * @return void
* @throws ConfigException
*/ */
public function addProcess(array $class): void public function addProcess(array $class): void
{ {
foreach ($class as $key => $item) { $this->processManager->batch($class);
$this->_process[] = $item;
}
} }
-15
View File
@@ -191,21 +191,6 @@ class Server extends HttpService
} }
/**
* @return void
*/
public function onSigint(): void
{
try {
$this->dispatch->dispatch(new OnBeforeShutdown());
} catch (\Throwable $exception) {
$this->logger->error($exception->getMessage());
} finally {
$this->manager->shutdown();
}
}
/** /**
* @return void * @return void
* @throws ReflectionException * @throws ReflectionException