modify plugin name

This commit is contained in:
2022-06-22 18:12:30 +08:00
parent 660b1a9bec
commit f83afa3e71
2 changed files with 2 additions and 10 deletions
-1
View File
@@ -8,7 +8,6 @@ use Kiri\Abstracts\Config;
use Kiri\Core\Json;
use Kiri\Di\ContainerInterface;
use Kiri\Exception\ConfigException;
use Kiri\Server\Events\OnBeforeShutdown;
use Kiri\Server\Events\OnShutdown;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
+2 -9
View File
@@ -10,13 +10,8 @@ use Kiri\Abstracts\Config;
use Kiri\Events\EventDispatch;
use Kiri\Events\EventProvider;
use Kiri\Exception\ConfigException;
use Kiri\Message\Constrict\RequestInterface;
use Kiri\Message\Constrict\ResponseInterface;
use Kiri\Message\Emitter;
use Kiri\Message\Handler\Abstracts\HttpService;
use Kiri\Message\Handler\Router;
use Kiri\Message\ResponseEmitter;
use Kiri\Server\Events\OnBeforeShutdown;
use Kiri\Server\Events\OnServerBeforeStart;
use Kiri\Server\Events\OnShutdown;
use Kiri\Server\Events\OnWorkerStart;
@@ -31,11 +26,8 @@ use Swoole\WebSocket\Server as WsServer;
use Swoole\Server as SServer;
use Swoole\Http\Server as HServer;
use Swoole\Coroutine;
use Kiri\Message\Constrict\Response;
use Kiri\Message\Constrict\Request;
use Kiri\Server\Abstracts\ProcessManager;
use Kiri\Server\Abstracts\AsyncServer;
use Kiri\Server\Abstracts\CoroutineServer;
defined('PID_PATH') or define('PID_PATH', APP_PATH . 'storage/server.pid');
@@ -115,12 +107,13 @@ class Server extends HttpService
*/
public function start(): void
{
$this->onHotReload();
$this->manager->addProcess($this->process);
$this->manager->initCoreServers(Config::get('server', [], true), $this->daemon);
$this->manager->onSignal(Config::get('signal', []));
$this->onHotReload();
$this->dispatch->dispatch(new OnServerBeforeStart());