-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
rakit
37 lines (30 loc) · 1.49 KB
/
rakit
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
#!/usr/bin/env php
<?php
// --------------------------------------------------------------
// Catat timer awal (untuk benchmark)
// --------------------------------------------------------------
define('RAKIT_START', microtime(true));
// --------------------------------------------------------------
// Definisikan konstanta untuk directory separator.
// --------------------------------------------------------------
define('DS', DIRECTORY_SEPARATOR);
// --------------------------------------------------------------
// Include konstanta path milik framework.
// --------------------------------------------------------------
require 'paths.php';
// --------------------------------------------------------------
// Panggil init script sebelum first boot.
// --------------------------------------------------------------
require path('system') . 'init.php';
// --------------------------------------------------------------
// Bootstrap file core milik framework.
// --------------------------------------------------------------
require path('system') . 'core.php';
// --------------------------------------------------------------
// Pastikan script dijalankan via console.
// --------------------------------------------------------------
is_cli() or exit('Please run this script from your console.');
// --------------------------------------------------------------
// Panggil consolenya.
// --------------------------------------------------------------
require path('system') . 'console' . DS . 'boot.php';