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 {
|
2019-07-26 09:39:46 -04:00
|
|
|
const VERSION = "0.8.0";
|
2018-10-26 14:58:04 -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) {
|
2018-11-06 12:32:28 -05:00
|
|
|
static::$lang = 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);
|
2018-11-06 12:32:28 -05:00
|
|
|
static::$db = static::$db ?? new Database;
|
|
|
|
static::$user = static::$user ?? new User;
|
2017-03-28 18:50:00 -04:00
|
|
|
}
|
2017-08-29 10:50:31 -04:00
|
|
|
}
|