-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
37 lines (36 loc) · 951 Bytes
/
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
<?php
declare(strict_types=1);
/******************************************************************************************************************
Framework Requirements
PHP Version: PHP 7.1 (Preferrably FastCgi Mode)
MYSQL Database Engine: Innodb
PHP Mode: Strict
Cache Server: Redis 2.7 or Later
******************************************************************************************************************/
require_once "core/app.class.php";
use CORE\App;
App::init()
->isHttp()
->loadFiles()
->configureServices(
function()
{
CORE\Hash::init();
CORE\SESSION::init();
CORE\Debug::init()::ipFilter('*')::on();
CORE\Logger::addChannel('main');
CORE\DB\DB::init();
CORE\REDIS\Redis::init();
CORE\DB\DataStore::init();
// App::install();//call it first time only
}
)->run(
function()
{
}
)->terminate(
function()
{
CORE\DB\DB::close();
}
);