Skip to content

Commit

Permalink
[Task]: Make booting consistent (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored Feb 27, 2024
1 parent b48e761 commit 041376c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,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
Expand Down

0 comments on commit 041376c

Please sign in to comment.