2015-07-12 20:01:42 +01:00
|
|
|
<?php
|
|
|
|
|
2021-10-30 21:29:59 +01:00
|
|
|
use BookStack\Http\Request;
|
2021-11-04 22:57:49 +00:00
|
|
|
use Illuminate\Contracts\Http\Kernel;
|
2021-10-30 21:29:59 +01:00
|
|
|
|
2017-11-19 17:59:12 +00:00
|
|
|
define('LARAVEL_START', microtime(true));
|
|
|
|
|
2025-01-11 11:14:49 +00:00
|
|
|
// Determine if the application is in maintenance mode...
|
2021-10-30 21:29:59 +01:00
|
|
|
if (file_exists(__DIR__ . '/../storage/framework/maintenance.php')) {
|
|
|
|
require __DIR__ . '/../storage/framework/maintenance.php';
|
|
|
|
}
|
2015-07-12 20:01:42 +01:00
|
|
|
|
2025-01-11 11:14:49 +00:00
|
|
|
// Register the Composer autoloader...
|
2021-10-30 21:29:59 +01:00
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
2015-07-12 20:01:42 +01:00
|
|
|
|
|
|
|
|
2025-01-11 11:14:49 +00:00
|
|
|
// Run the application
|
2021-10-30 21:29:59 +01:00
|
|
|
$app = require_once __DIR__ . '/../bootstrap/app.php';
|
|
|
|
$app->alias('request', Request::class);
|
2015-07-12 20:01:42 +01:00
|
|
|
|
2021-10-30 21:29:59 +01:00
|
|
|
$kernel = $app->make(Kernel::class);
|
2015-07-12 20:01:42 +01:00
|
|
|
|
2021-10-30 21:29:59 +01:00
|
|
|
$response = tap($kernel->handle(
|
|
|
|
$request = Request::capture()
|
|
|
|
))->send();
|
2015-07-12 20:01:42 +01:00
|
|
|
|
2021-11-04 22:57:49 +00:00
|
|
|
$kernel->terminate($request, $response);
|