mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 23:57:29 +02:00
refactor: change the way dependencies are wired (#4194)
* refactor: change the way dependencies are setup * lint
This commit is contained in:
@@ -198,6 +198,9 @@ final class Configuration
|
||||
|
||||
public static function getConfig(string $section, string $key, $default = null)
|
||||
{
|
||||
if (self::$config === []) {
|
||||
throw new \Exception('Config has not been loaded');
|
||||
}
|
||||
return self::$config[strtolower($section)][strtolower($key)] ?? $default;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user