From 8b0025aa4b65199875caf5d5f75f43feafba2c66 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sun, 26 Feb 2023 22:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20index.php=20=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E5=BC=95=E5=AF=BC=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap/dash.php | 56 +++++++++++++++++++++++++++++++++++++++++ public/index.php | 62 ++++++++-------------------------------------- 2 files changed, 67 insertions(+), 51 deletions(-) create mode 100644 bootstrap/dash.php diff --git a/bootstrap/dash.php b/bootstrap/dash.php new file mode 100644 index 0000000..e7aa590 --- /dev/null +++ b/bootstrap/dash.php @@ -0,0 +1,56 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +)->send(); + +$kernel->terminate($request, $response); diff --git a/public/index.php b/public/index.php index e7aa590..700f0cc 100644 --- a/public/index.php +++ b/public/index.php @@ -1,56 +1,16 @@ make(Kernel::class); - -$response = $kernel->handle( - $request = Request::capture() -)->send(); - -$kernel->terminate($request, $response); +// Start DASH! +require '../bootstrap/dash.php';