From 041376c318479018e9a1e0f7fc15c0cc4b776576 Mon Sep 17 00:00:00 2001 From: JiaJia Ji Date: Tue, 27 Feb 2024 12:26:36 +0100 Subject: [PATCH] [Task]: Make booting consistent (#183) --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 2bd8c8e49..c296606f5 100644 --- a/public/index.php +++ b/public/index.php @@ -19,7 +19,6 @@ require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; Bootstrap::setProjectRoot(); -Bootstrap::bootstrap(); return function (Request $request, array $context) { @@ -27,6 +26,7 @@ // request stack available yet Tool::setCurrentRequest($request); + Bootstrap::bootstrap(); $kernel = Bootstrap::kernel(); // reset current request - will be read from request stack from now on