modify plugin name
This commit is contained in:
+1
-3
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
namespace Kiri\Server;
|
namespace Kiri\Server;
|
||||||
|
|
||||||
use Database\CreateConnectionPool;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use JetBrains\PhpStorm\Pure;
|
use JetBrains\PhpStorm\Pure;
|
||||||
use Kiri;
|
use Kiri;
|
||||||
@@ -12,13 +11,13 @@ use Kiri\Annotation\Inject;
|
|||||||
use Kiri\Events\EventDispatch;
|
use Kiri\Events\EventDispatch;
|
||||||
use Kiri\Exception\ConfigException;
|
use Kiri\Exception\ConfigException;
|
||||||
use Kiri\Message\Handler\Abstracts\HttpService;
|
use Kiri\Message\Handler\Abstracts\HttpService;
|
||||||
|
use Kiri\Message\Handler\Router;
|
||||||
use Kiri\Server\Events\OnServerBeforeStart;
|
use Kiri\Server\Events\OnServerBeforeStart;
|
||||||
use Kiri\Server\Events\OnShutdown;
|
use Kiri\Server\Events\OnShutdown;
|
||||||
use Psr\Container\ContainerExceptionInterface;
|
use Psr\Container\ContainerExceptionInterface;
|
||||||
use Psr\Container\NotFoundExceptionInterface;
|
use Psr\Container\NotFoundExceptionInterface;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
use Kiri\Message\Handler\Router;
|
|
||||||
|
|
||||||
|
|
||||||
defined('PID_PATH') or define('PID_PATH', APP_PATH . 'storage/server.pid');
|
defined('PID_PATH') or define('PID_PATH', APP_PATH . 'storage/server.pid');
|
||||||
@@ -99,7 +98,6 @@ class Server extends HttpService
|
|||||||
$this->getContainer()->get(ProcessManager::class)->batch($processes);
|
$this->getContainer()->get(ProcessManager::class)->batch($processes);
|
||||||
|
|
||||||
$this->getEventDispatch()->dispatch(new OnServerBeforeStart());
|
$this->getEventDispatch()->dispatch(new OnServerBeforeStart());
|
||||||
$this->getEventDispatch()->dispatch(new CreateConnectionPool());
|
|
||||||
|
|
||||||
$this->getContainer()->get(Router::class)->scan_build_route();
|
$this->getContainer()->get(Router::class)->scan_build_route();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user