From d7e5d85c7669e491720f7953580cb918a602c341 Mon Sep 17 00:00:00 2001 From: chengyao <987861463@qq.com> Date: Fri, 13 Dec 2024 12:33:22 +0800 Subject: [PATCH] update --- bin/cli-server.php | 8 ++++++-- bin/swoole.php | 18 ++++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/bin/cli-server.php b/bin/cli-server.php index 105a12c..0dcf3f3 100644 --- a/bin/cli-server.php +++ b/bin/cli-server.php @@ -9,6 +9,10 @@ * @license https://github.com/next-laboratory/next/blob/master/LICENSE */ +date_default_timezone_set('PRC'); +define('BASE_PATH', dirname(__DIR__) . '/'); +require_once BASE_PATH . 'app/bootstrap.php'; + echo <<on('request', function (Request $request, Response $response) use ($routeDispatcher) { @@ -38,4 +40,16 @@ } }); +echo <<start();