From d0599e2443c3695e0597227b6d9ec0e9acd2ce8c Mon Sep 17 00:00:00 2001 From: JiaJia Ji Date: Tue, 27 Feb 2024 12:40:04 +0100 Subject: [PATCH] [Task]: Make booting consistent (#570) --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index 40e3f6bc..c409e9a4 100644 --- a/public/index.php +++ b/public/index.php @@ -20,14 +20,14 @@ require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; Bootstrap::setProjectRoot(); -Bootstrap::bootstrap(); return function (Request $request, array $context) { // set current request as property on tool as there's no // request stack available yet Tool::setCurrentRequest($request); - + + Bootstrap::bootstrap(); $kernel = Bootstrap::kernel(); // reset current request - will be read from request stack from now on