SystemConfiguration.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @property bool $allow_anonymous
  4. * @property bool $allow_anonymous_refresh
  5. * @property-read bool $allow_referrer
  6. * @property-read bool $allow_robots
  7. * @property bool $api_enabled
  8. * @property string $archiving
  9. * @property 'form'|'http_auth'|'none' $auth_type
  10. * @property string $auto_update_url
  11. * @property-read array<int,mixed> $curl_options
  12. * @property string $default_user
  13. * @property string $email_validation_token
  14. * @property bool $force_email_validation
  15. * @property-read bool $http_auth_auto_register
  16. * @property-read string $http_auth_auto_register_email_field
  17. * @property-read string $language
  18. * @property array<string,int> $limits
  19. * @property-read string $logo_html
  20. * @property-read string $meta_description
  21. * @property-read bool $pubsubhubbub_enabled
  22. * @property-read string $salt
  23. * @property-read bool $simplepie_syslog_enabled
  24. * @property bool $unsafe_autologin_enabled
  25. * @property array<string> $trusted_sources
  26. */
  27. final class FreshRSS_SystemConfiguration extends Minz_Configuration {
  28. public static function init(string $config_filename, ?string $default_filename = null): FreshRSS_SystemConfiguration {
  29. parent::register('system', $config_filename, $default_filename);
  30. return parent::get('system');
  31. }
  32. }