*/
namespace Friendica\Core;
-use Friendica\BaseObject;
-use Friendica\Core\Config\Configuration;
+use Friendica\DI;
/**
* @brief Arbitrary system configuration storage
* If we ever would decide to return exactly the variable type as entered,
* we will have fun with the additional features. :-)
*/
-class Config extends BaseObject
+class Config
{
/**
* @brief Loads all configuration values of family into a cached storage.
*/
public static function load($cat = "config")
{
- self::getClass(Configuration::class)->load($cat);
+ DI::config()->load($cat);
}
/**
*/
public static function get($cat, $key, $default_value = null, $refresh = false)
{
- return self::getClass(Configuration::class)->get($cat, $key, $default_value, $refresh);
+ return DI::config()->get($cat, $key, $default_value, $refresh);
}
/**
*/
public static function set($cat, $key, $value)
{
- return self::getClass(Configuration::class)->set($cat, $key, $value);
+ return DI::config()->set($cat, $key, $value);
}
/**
*/
public static function delete($cat, $key)
{
- return self::getClass(Configuration::class)->delete($cat, $key);
+ return DI::config()->delete($cat, $key);
}
}