]> BookStack Code Mirror - bookstack/blob - public/index.php
Update errors.php
[bookstack] / public / index.php
1 <?php
2
3 /**
4  * Laravel - A PHP Framework For Web Artisans
5  *
6  * @package  Laravel
7  * @author   Taylor Otwell <taylor@laravel.com>
8  */
9
10 define('LARAVEL_START', microtime(true));
11
12 /*
13 |--------------------------------------------------------------------------
14 | Initialize The App
15 |--------------------------------------------------------------------------
16 |
17 | We need to get things going before we start up the app.
18 | The init file loads everything in, in the correct order.
19 |
20 */
21
22 require __DIR__.'/../bootstrap/init.php';
23
24 /*
25 |--------------------------------------------------------------------------
26 | Turn On The Lights
27 |--------------------------------------------------------------------------
28 |
29 | We need to illuminate PHP development, so let us turn on the lights.
30 | This bootstraps the framework and gets it ready for use, then it
31 | will load up this application so that we can run it and send
32 | the responses back to the browser and delight our users.
33 |
34 */
35
36 $app = require_once __DIR__.'/../bootstrap/app.php';
37 $app->alias('request', \BookStack\Http\Request::class);
38
39 /*
40 |--------------------------------------------------------------------------
41 | Run The Application
42 |--------------------------------------------------------------------------
43 |
44 | Once we have the application, we can handle the incoming request
45 | through the kernel, and send the associated response back to
46 | the client's browser allowing them to enjoy the creative
47 | and wonderful application we have prepared for them.
48 |
49 */
50
51 $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
52
53 $response = $kernel->handle(
54     $request = \BookStack\Http\Request::capture()
55 );
56
57 $response->send();
58
59 $kernel->terminate($request, $response);
Morty Proxy This is a proxified and sanitized view of the page, visit original site.