2017-03-28 18:50:00 -04:00
|
|
|
<?php
|
2017-11-16 20:23:18 -05:00
|
|
|
/** @license MIT
|
|
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
|
2017-03-28 18:50:00 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
namespace JKingWeb\Arsse;
|
|
|
|
|
2017-07-17 07:47:57 -04:00
|
|
|
class Arsse {
|
2017-11-29 23:45:27 -05:00
|
|
|
const VERSION = "0.2.0";
|
2017-10-01 09:33:49 -04:00
|
|
|
|
2017-07-17 07:47:57 -04:00
|
|
|
/** @var Lang */
|
2017-07-11 20:27:37 -04:00
|
|
|
public static $lang;
|
2017-07-17 07:47:57 -04:00
|
|
|
/** @var Conf */
|
2017-03-28 18:50:00 -04:00
|
|
|
public static $conf;
|
2017-07-17 07:47:57 -04:00
|
|
|
/** @var Database */
|
2017-03-28 18:50:00 -04:00
|
|
|
public static $db;
|
2017-07-17 07:47:57 -04:00
|
|
|
/** @var User */
|
2017-03-28 18:50:00 -04:00
|
|
|
public static $user;
|
|
|
|
|
2017-08-29 10:50:31 -04:00
|
|
|
public static function load(Conf $conf) {
|
2017-07-11 20:27:37 -04:00
|
|
|
static::$lang = new Lang();
|
2017-03-28 18:50:00 -04:00
|
|
|
static::$conf = $conf;
|
2017-07-11 20:27:37 -04:00
|
|
|
static::$lang->set($conf->lang);
|
2017-03-28 18:50:00 -04:00
|
|
|
static::$db = new Database();
|
|
|
|
static::$user = new User();
|
|
|
|
}
|
2017-08-29 10:50:31 -04:00
|
|
|
}
|