Move Config::load() to DI::config()->load()

This commit is contained in:
nupplaPhil 2020-01-19 21:20:10 +01:00
parent 1bc4b2e078
commit 5d294e8be8
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 3 additions and 15 deletions

View file

@ -44,7 +44,7 @@ if (DI::mode()->isInstall()) {
die("Friendica isn't properly installed yet.\n");
}
Config::load();
DI::config()->load();
if (empty(Config::get('system', 'pidfile'))) {
die(<<<TXT

View file

@ -19,18 +19,6 @@ use Friendica\DI;
*/
class Config
{
/**
* Loads all configuration values of family into a cached storage.
*
* @param string $cat The category of the configuration value
*
* @return void
*/
public static function load($cat = "config")
{
DI::config()->load($cat);
}
/**
* Get a particular user's config variable given the category name ($family) and a key.
*

View file

@ -90,7 +90,7 @@ class Update
$stored = intval($build);
$current = intval(DB_UPDATE_VERSION);
if ($stored < $current || $force) {
Config::load('database');
DI::config()->load('database');
Logger::info('Update starting.', ['from' => $stored, 'to' => $current]);

View file

@ -14,7 +14,7 @@ $schemecss = '';
$schemecssfile = false;
$scheme_modified = 0;
Config::load('frio');
DI::config()->load('frio');
// Default to hard-coded values for empty settings
$scheme = Config::get('frio', 'scheme', Config::get('frio', 'schema'));