改名
This commit is contained in:
+3
-6
@@ -6,12 +6,8 @@ namespace Server;
|
|||||||
|
|
||||||
use Annotation\Inject;
|
use Annotation\Inject;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Http\Constrict\Request;
|
use Http\Handler\Router;
|
||||||
use Http\Constrict\RequestInterface;
|
|
||||||
use Http\Constrict\Response;
|
|
||||||
use Http\Constrict\ResponseInterface;
|
|
||||||
use Kiri\Abstracts\Config;
|
use Kiri\Abstracts\Config;
|
||||||
use Kiri\Di\ContainerInterface;
|
|
||||||
use Kiri\Events\EventProvider;
|
use Kiri\Events\EventProvider;
|
||||||
use Kiri\Exception\ConfigException;
|
use Kiri\Exception\ConfigException;
|
||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
@@ -110,12 +106,13 @@ class ServerCommand extends Command
|
|||||||
/**
|
/**
|
||||||
* @param $manager
|
* @param $manager
|
||||||
* @throws ConfigException
|
* @throws ConfigException
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private function generate_runtime_builder($manager): void
|
private function generate_runtime_builder($manager): void
|
||||||
{
|
{
|
||||||
$this->configure_set();
|
$this->configure_set();
|
||||||
|
|
||||||
// exec(PHP_BINARY . ' ' . APP_PATH . 'kiri.php runtime:builder');
|
Kiri::getDi()->get(Router::class)->read_files();
|
||||||
|
|
||||||
$this->eventProvider->on(OnBeforeWorkerStart::class, [di(OnServerWorker::class), 'setConfigure']);
|
$this->eventProvider->on(OnBeforeWorkerStart::class, [di(OnServerWorker::class), 'setConfigure']);
|
||||||
$this->eventProvider->on(OnWorkerStart::class, [di(WorkerDispatch::class), 'dispatch']);
|
$this->eventProvider->on(OnWorkerStart::class, [di(WorkerDispatch::class), 'dispatch']);
|
||||||
|
|||||||
Reference in New Issue
Block a user