-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.php
36 lines (27 loc) · 924 Bytes
/
init.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
<?php
/**
* THIS FILE IS A PART OF
* *** CloudSky ***.
* Licensed under MIT.
*
* @author xtl<[email protected]>
* @package cloudsky
* @license MIT
*
*/
namespace CloudSky;
require_once("vendor/autoload.php");
use \League\Event\Emitter;
use \League\Container\Container;
require_once("Library/Core.php");
Core::_event(new Emitter); Core::_container(new Container);
require_once("Library/autoload.php");
Core::$package['CloudSky'] =
new Package('CloudSky', true, json_decode(Core::base('/etc/CloudSky/packages/CloudSky.json')));
foreach(Core::package('CloudSky')->config('packages')->enabled as $v){
Package::factory($v);
}
Core::_method(new Method);
Core::event()->emit("system.core.startup");
Core::event()->emit("system.method.register");
//echo Core::method()->get("version")['callback'](1, 2);