forked from stupidlysimple/php
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
executable file
·56 lines (52 loc) · 1.7 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
<?php
/**
* StupidlySimple - A PHP Framework For Lazy Developers
*
* @package StupidlySimple
* @author Fariz Luqman <[email protected]>
* @copyright 2017 Fariz Luqman
* @license MIT
* @link https://stupidlysimple.github.io/
*/
/*
|--------------------------------------------------------------------------
| Track the Pre-Execution Time
|--------------------------------------------------------------------------
|
| Get the time in microtime format for you to measure the awesomeness by
| Damn Stupid Simple framework.
|
*/
define('SS_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Use Full Paths for Better Performance
|--------------------------------------------------------------------------
|
| The full path starting from the index.php file. Improves performance (a
| bit)
|
*/
define('SS_PATH', realpath(dirname(__FILE__)) .'/');
/*
|--------------------------------------------------------------------------
| Include the Autoloader file
|--------------------------------------------------------------------------
|
| In this file we will register the Autoloader from Composer. Environment
| variables (that you set on config/env.php) will be registered this time.
| Our sweet debugging tool will also be loaded to track errors as earlier
| as possible.
|
*/
require_once(SS_PATH.'app/autoloader.php');
/*
|--------------------------------------------------------------------------
| Include the Bootstrap File
|--------------------------------------------------------------------------
|
| The bootstrapper will make sure that every services, like database, cache
| manager and routing runs perfectly well.
|
*/
require_once(SS_PATH.'app/bootstrap.php');