aboutsummaryrefslogtreecommitdiff
path: root/app/Models/SystemConfiguration.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/SystemConfiguration.php')
-rw-r--r--app/Models/SystemConfiguration.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/SystemConfiguration.php b/app/Models/SystemConfiguration.php
index ec5960c0e..9fc79969d 100644
--- a/app/Models/SystemConfiguration.php
+++ b/app/Models/SystemConfiguration.php
@@ -25,6 +25,10 @@
* @property string $unsafe_autologin_enabled
* @property-read array<string> $trusted_sources
*/
-class FreshRSS_SystemConfiguration extends Minz_Configuration {
+final class FreshRSS_SystemConfiguration extends Minz_Configuration {
+ public static function init($config_filename, $default_filename = null): FreshRSS_SystemConfiguration {
+ parent::register('system', $config_filename, $default_filename);
+ return parent::get('system');
+ }
}