modify plugin name
This commit is contained in:
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user