forked from cedar2025/Xboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.php
38 lines (26 loc) · 823 Bytes
/
start.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$app = require_once __DIR__.'/bootstrap/app.php';
global $kernel;
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
function run()
{
global $kernel;
ob_start();
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
return ob_get_clean();
}