Skip to content

Commit

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

0 comments on commit d0599e2

Please sign in to comment.