Skip to content

Commit

Permalink
corrected how you start the app
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed Jan 20, 2024
1 parent c363293 commit 1ed3739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ed3739

Please sign in to comment.