-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
73 lines (62 loc) · 2.45 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* SDaiLover Open Source & Software Development
*
* @fullname : Stephanus Bagus Saputra,
* ( 戴 Dai 偉 Wie 峯 Funk )
* @email : wiefunk@stephanusdai.web.id
* @contact : https://t.me/wiefunkdai
* @support : https://opencollective.com/wiefunkdai
* @link : https://www.sdailover.web.id,
* https://www.stephanusdai.web.id
* @license : https://www.sdailover.web.id/license/
* @copyright : (c) 2023 StephanusDai Developer. All rights reserved.
* This software using Laravel Framework has released under the terms of the MIT License.
*/
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
require_once(__DIR__ . '/packages/config.php');
/*
|--------------------------------------------------------------------------
| Check If The Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is in maintenance / demo mode via the "down" command
| we will load this file so that any pre-rendered content can be shown
| instead of starting the framework, which could cause an exception.
|
*/
if (file_exists($maintenance = APPLICATION_PATH.'/storage/framework/maintenance.php')) {
require $maintenance;
}
/*
|--------------------------------------------------------------------------
| 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.
|
*/
$loader=require(LARAVEL_PATH.DIRECTORY_SEPARATOR.'autoload.php');
$loader->setPsr4("App\\", APPLICATION_PATH.DIRECTORY_SEPARATOR.'app');
$loader->setUseIncludePath(true);
$loader->register();
/*
|--------------------------------------------------------------------------
| 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.
|
*/
$app = require_once APPLICATION_PATH . '/bootstrap/app.php';
$kernel = $app->make(Kernel::class);
$response = $kernel->handle(
$request = Request::capture()
)->send();
$kernel->terminate($request, $response);