Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
CAMainConfigNames | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | // phpcs:disable Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase |
4 | // phpcs:disable Generic.Files.LineLength.TooLong |
5 | namespace MediaWiki\Extension\CentralAuth\Config; |
6 | |
7 | /** |
8 | * Keep in sync with extension.json #config map. We do not want to |
9 | * duplicate documentation, so the docs for each setting is in the |
10 | * extension.json file, refer there instead. |
11 | * |
12 | * This is a convenient class just like that in core for referencing |
13 | * config settings. NOTE: This can use the IDE static analysis rules |
14 | * to determine if the constant is used or not which can help in catching |
15 | * unused settings. |
16 | * |
17 | * @note When a constant is caught by the IDE here as on unused, check |
18 | * and verify if it's not used as a global variable. The ones used |
19 | * as global variables have been marked to inform the developer. If |
20 | * we move globals to proper settings to be injected via service options, |
21 | * then those can be referenced using these constants. |
22 | */ |
23 | class CAMainConfigNames { |
24 | /** @deprecated Use MainConfigNames DatabaseVirtualDomains in core. */ |
25 | public const CentralAuthDatabase = 'CentralAuthDatabase'; |
26 | /** @note Used as a global variable */ |
27 | public const CentralAuthAutoMigrate = 'CentralAuthAutoMigrate'; |
28 | /** @note Used as a global variable */ |
29 | public const CentralAuthAutoMigrateNonGlobalAccounts = 'CentralAuthAutoMigrateNonGlobalAccounts'; |
30 | public const CentralAuthStrict = 'CentralAuthStrict'; |
31 | public const CentralAuthDryRun = 'CentralAuthDryRun'; |
32 | public const CentralAuthCookies = 'CentralAuthCookies'; |
33 | public const CentralAuthLoginWiki = 'CentralAuthLoginWiki'; |
34 | public const CentralAuthSharedDomainPrefix = 'CentralAuthSharedDomainPrefix'; |
35 | public const CentralAuthRestrictSharedDomain = 'CentralAuthRestrictSharedDomain'; |
36 | public const CentralAuthCookieDomain = 'CentralAuthCookieDomain'; |
37 | public const CentralAuthCookiePrefix = 'CentralAuthCookiePrefix'; |
38 | public const CentralAuthCookiePath = 'CentralAuthCookiePath'; |
39 | /** @note Used as a global variable */ |
40 | public const CentralAuthAutoLoginWikis = 'CentralAuthAutoLoginWikis'; |
41 | public const CentralAuthAutoCreateWikis = 'CentralAuthAutoCreateWikis'; |
42 | public const CentralAuthLoginIcon = 'CentralAuthLoginIcon'; |
43 | public const CentralAuthPrefsForUIReload = 'CentralAuthPrefsForUIReload'; |
44 | /** @note Used as a global variable */ |
45 | public const CentralAuthRC = 'CentralAuthRC'; |
46 | /** @note Used as a global variable */ |
47 | public const CentralAuthWikisPerSuppressJob = 'CentralAuthWikisPerSuppressJob'; |
48 | public const CentralAuthReadOnly = 'CentralAuthReadOnly'; |
49 | public const CentralAuthEnableGlobalRenameRequest = 'CentralAuthEnableGlobalRenameRequest'; |
50 | public const CentralAuthGlobalPasswordPolicies = 'CentralAuthGlobalPasswordPolicies'; |
51 | /** @note Used as a global variable */ |
52 | public const CentralAuthGlobalBlockInterwikiPrefix = 'CentralAuthGlobalBlockInterwikiPrefix'; |
53 | public const CentralAuthOldNameAntiSpoofWiki = 'CentralAuthOldNameAntiSpoofWiki'; |
54 | public const GlobalRenameDenylist = 'GlobalRenameDenylist'; |
55 | public const CentralAuthSessionCacheType = 'CentralAuthSessionCacheType'; |
56 | public const CentralAuthTokenSessionTimeout = 'CentralAuthTokenSessionTimeout'; |
57 | public const CentralAuthIpoidUrl = 'CentralAuthIpoidUrl'; |
58 | public const CentralAuthIpoidCheckAtAccountCreation = 'CentralAuthIpoidCheckAtAccountCreation'; |
59 | public const CentralAuthIpoidCheckAtAccountCreationLogOnly = 'CentralAuthIpoidCheckAtAccountCreationLogOnly'; |
60 | public const CentralAuthIpoidRequestTimeoutSeconds = 'CentralAuthIpoidRequestTimeoutSeconds'; |
61 | public const CentralAuthIpoidDenyAccountCreationRiskTypes = 'CentralAuthIpoidDenyAccountCreationRiskTypes'; |
62 | public const CentralAuthIpoidDenyAccountCreationTunnelTypes = 'CentralAuthIpoidDenyAccountCreationTunnelTypes'; |
63 | public const CentralAuthRejectVanishUserNotification = 'CentralAuthRejectVanishUserNotification'; |
64 | public const CentralAuthAutomaticVanishPerformer = 'CentralAuthAutomaticVanishPerformer'; |
65 | public const CentralAuthBlockAppealWikidataIds = 'CentralAuthBlockAppealWikidataIds'; |
66 | public const CentralAuthWikidataApiUrl = 'CentralAuthWikidataApiUrl'; |
67 | public const CentralAuthFallbackAppealUrl = 'CentralAuthFallbackAppealUrl'; |
68 | public const CentralAuthFallbackAppealTitle = 'CentralAuthFallbackAppealTitle'; |
69 | public const CentralAuthEnableSul3 = 'CentralAuthEnableSul3'; |
70 | } |