-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
41 lines (33 loc) · 1.14 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
<?php
/*
|--------------------------------------------------------------------------
| Introduction
|--------------------------------------------------------------------------
|
| This application is made using our personal Framework. This Framework
| contains every tooling that makes a solid application abiding by PSR
| convention. Have fun.
|
|--------------------------------------------------------------------------
*/
use Framework\Http\Kernel;
use Framework\Component\Application;
require_once 'autoload.php';
require_once 'Framework/helpers.php';
require_once 'routes/web.php';
$app = new Application(getcwd());
$app->set_config_path(base_path('config'));
/*
|--------------------------------------------------------------------------
| Application Setup
|--------------------------------------------------------------------------
|
| Here you register your configurations and setting your application's
| services. These registrations will be used to bootstrap the
| application.
|
|--------------------------------------------------------------------------
*/
$app->set_services([]);
$app->bootstrap();
$app->get(Kernel::class)->handle(request());