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