-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmagic
55 lines (47 loc) · 1.57 KB
/
magic
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
#!/usr/bin/env php
<?php
// Define Directory Sperator
define('DS', DIRECTORY_SEPARATOR);
// Define Base Dir Path
define('BASE', __DIR__ . DS);
date_default_timezone_set('UTC');
/**
* ---------------------------------------------------------
* Load Reborn's sites manager file
* ---------------------------------------------------------
*
* Reborn define other constants for application,
* start timer and memory record for profiling and
* make class alias to easy access for developer.
*
*/
$sites = require __DIR__.'/content/sites.php';
/**
* ---------------------------------------------------------
* Load Reborn's start helper file
* ---------------------------------------------------------
*
* Reborn define other constants for application,
* start timer and memory record for profiling and
* make class alias to easy access for developer.
*
*/
require_once __DIR__.'/heart/reborn/src/start.php';
$commands = require __DIR__.'/content/commands/register.php';
/**
* ---------------------------------------------------------
* Now Create the Reborn Application Instance.
* ---------------------------------------------------------
*
* Create Reborn Application Object to start the application.
*
*/
$reborn = new Reborn\Cores\Application();
$application = new Reborn\Console\Application(
Reborn\Cores\Version::getAppName(),
Reborn\Cores\Version::getVersion()
);
$application->setRebornApplication($reborn);
$application->registerForReborn();
$application->addCommands($commands);
$application->run();