modify plugin name

This commit is contained in:
2022-06-23 13:44:31 +08:00
parent ebc5cf7f8b
commit 9a0294eaa2
+2 -2
View File
@@ -21,7 +21,7 @@ use Kiri\Di\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface; use Psr\Container\NotFoundExceptionInterface;
use Kiri\Server\Events\OnWorkerStop; use Kiri\Server\Events\OnWorkerStop;
use ReflectionException; use ReflectionException;
use Kiri\Reload\Scaner; use Kiri\Reload\Scanner;
use Swoole\WebSocket\Server as WsServer; use Swoole\WebSocket\Server as WsServer;
use Swoole\Server as SServer; use Swoole\Server as SServer;
use Swoole\Http\Server as HServer; use Swoole\Http\Server as HServer;
@@ -172,7 +172,7 @@ class Server extends HttpService
$reload = Config::get('reload.hot', false); $reload = Config::get('reload.hot', false);
if ($reload !== false) { if ($reload !== false) {
$this->provider->on(OnWorkerStart::class, [$this, 'LoadRoutingList']); $this->provider->on(OnWorkerStart::class, [$this, 'LoadRoutingList']);
$this->manager->addProcess(Scaner::class); $this->manager->addProcess(Scanner::class);
} else { } else {
$this->LoadRoutingList(); $this->LoadRoutingList();
} }