]> BookStack Code Mirror - bookstack/blob - public/index.php
Merge pull request #5607 from BookStackApp/system_info_endpoint
[bookstack] / public / index.php
1 <?php
2
3 use BookStack\Http\Request;
4 use Illuminate\Contracts\Http\Kernel;
5
6 define('LARAVEL_START', microtime(true));
7
8 // Determine if the application is in maintenance mode...
9 if (file_exists(__DIR__ . '/../storage/framework/maintenance.php')) {
10     require __DIR__ . '/../storage/framework/maintenance.php';
11 }
12
13 // Register the Composer autoloader...
14 require __DIR__ . '/../vendor/autoload.php';
15
16
17 // Run the application
18 $app = require_once __DIR__ . '/../bootstrap/app.php';
19 $app->alias('request', Request::class);
20
21 $kernel = $app->make(Kernel::class);
22
23 $response = tap($kernel->handle(
24     $request = Request::capture()
25 ))->send();
26
27 $kernel->terminate($request, $response);
Morty Proxy This is a proxified and sanitized view of the page, visit original site.