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 {
|
2019-12-06 22:46:53 +00:00
|
|
|
const VERSION = "0.8.2";
|
2018-10-26 18:58:04 +00:00
|
|
|
|
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;
|
|
|
|
|
2020-01-20 18:34:03 +00:00
|
|
|
public static function load(Conf $conf): void {
|
2018-11-06 17:32:28 +00:00
|
|
|
static::$lang = 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);
|
2018-11-06 17:32:28 +00:00
|
|
|
static::$db = static::$db ?? new Database;
|
|
|
|
static::$user = static::$user ?? new User;
|
2017-03-28 22:50:00 +00:00
|
|
|
}
|
2017-08-29 14:50:31 +00:00
|
|
|
}
|