modify plugin name

This commit is contained in:
2022-06-20 18:14:25 +08:00
parent b20c8fc5a3
commit 2a5b7d1cac
4 changed files with 56 additions and 2 deletions
+15
View File
@@ -7,6 +7,7 @@ use Kiri;
use Kiri\Abstracts\Config;
use Kiri\Di\ContainerInterface;
use Kiri\Exception\ConfigException;
use Kiri\Server\Events\OnShutdown;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Log\LoggerInterface;
@@ -81,6 +82,20 @@ class AsyncServer implements ServerInterface
}
/**
* @return void
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws ReflectionException
*/
public function shutdown(): void
{
$this->server->shutdown();
$this->dispatch->dispatch(new OnShutdown());
}
/**
* @param \Kiri\Server\Config $config
* @param int $daemon