modify plugin name

This commit is contained in:
2022-06-22 16:50:37 +08:00
parent b85ba031f6
commit 5f3d60cca9
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -2,7 +2,6 @@
namespace Kiri\Server\Abstracts;
use Kiri\Exception\ConfigException;
use Swoole\Http\Server as HServer;
use Swoole\Server;
use Kiri\Server\Constant;
@@ -19,11 +18,12 @@ trait TraitServer
/**
* @param array $class
* @return void
* @throws ConfigException
*/
public function addProcess(array $class): void
{
$this->processManager->batch($class);
foreach ($class as $item) {
$this->_process[] = $item;
}
}
+2 -1
View File
@@ -115,13 +115,14 @@ class Server extends HttpService
*/
public function start(): void
{
$this->manager->addProcess($this->process);
$this->manager->initCoreServers(Config::get('server', [], true), $this->daemon);
$this->manager->onSignal(Config::get('signal', []));
$this->onHotReload();
$this->manager->addProcess($this->process);
$this->dispatch->dispatch(new OnServerBeforeStart());
$this->manager->start();
}