From 1ed373927719ffac4e872e6373e11da5f0ce54ff Mon Sep 17 00:00:00 2001 From: n0nag0n Date: Fri, 19 Jan 2024 20:35:09 -0700 Subject: [PATCH] corrected how you start the app --- app/config/bootstrap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config/bootstrap.php b/app/config/bootstrap.php index 43c8f0d..7061f4c 100644 --- a/app/config/bootstrap.php +++ b/app/config/bootstrap.php @@ -13,7 +13,8 @@ // It is better practice to not use static methods for everything. It makes your // app much more difficult to unit test easily. -$app = new flight\Engine(); +// This is important as it connects any static calls to the same $app object +$app = Flight::app(); /* * Load the config file