The clean & modern RSS server that doesn't give you any crap. https://thearsse.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Arsse.php 683B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /** @license MIT
  3. * Copyright 2017 J. King, Dustin Wilson et al.
  4. * See LICENSE and AUTHORS files for details */
  5. declare(strict_types=1);
  6. namespace JKingWeb\Arsse;
  7. class Arsse {
  8. const VERSION = "0.7.1";
  9. /** @var Lang */
  10. public static $lang;
  11. /** @var Conf */
  12. public static $conf;
  13. /** @var Database */
  14. public static $db;
  15. /** @var User */
  16. public static $user;
  17. public static function load(Conf $conf) {
  18. static::$lang = static::$lang ?? new Lang;
  19. static::$conf = $conf;
  20. static::$lang->set($conf->lang);
  21. static::$db = static::$db ?? new Database;
  22. static::$user = static::$user ?? new User;
  23. }
  24. }