BookStack/public/index.php

28 lines
675 B
PHP
Raw Normal View History

2015-07-12 20:01:42 +01:00
<?php
use BookStack\Http\Request;
2021-11-04 22:57:49 +00:00
use Illuminate\Contracts\Http\Kernel;
define('LARAVEL_START', microtime(true));
// Determine if the application is in maintenance mode...
if (file_exists(__DIR__ . '/../storage/framework/maintenance.php')) {
require __DIR__ . '/../storage/framework/maintenance.php';
}
2015-07-12 20:01:42 +01:00
// Register the Composer autoloader...
require __DIR__ . '/../vendor/autoload.php';
2015-07-12 20:01:42 +01:00
// Run the application
$app = require_once __DIR__ . '/../bootstrap/app.php';
$app->alias('request', Request::class);
2015-07-12 20:01:42 +01:00
$kernel = $app->make(Kernel::class);
2015-07-12 20:01:42 +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);