-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
52 lines (42 loc) · 1.61 KB
/
index.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
use App\Http\Kernel;
define('ZUNO_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.
|
*/
require_once __DIR__ . '/vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/
require_once __DIR__ . '/bootstrap/app.php';
require __DIR__ . '/routes/web.php';
/*
|--------------------------------------------------------------------------
| Handling the client Request
|--------------------------------------------------------------------------
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
*/
$kernel = $app->make(Kernel::class);
$kernel->send();
/*
|--------------------------------------------------------------------------
| Run the application
|--------------------------------------------------------------------------
*/
$app->run();