MediaWiki master
PermissionManager.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Permissions;
8
9use InvalidArgumentException;
10use LogicException;
11use MediaWiki\Actions\ActionFactory;
12use MediaWiki\Api\ApiMessage;
13use MediaWiki\Auth\AuthManager;
14use MediaWiki\Block\AbstractBlock;
15use MediaWiki\Block\Block;
16use MediaWiki\Block\BlockErrorFormatter;
17use MediaWiki\Block\BlockManager;
18use MediaWiki\Config\ServiceOptions;
19use MediaWiki\Context\IContextSource;
20use MediaWiki\Context\RequestContext;
21use MediaWiki\Exception\PermissionsError;
22use MediaWiki\HookContainer\HookContainer;
23use MediaWiki\HookContainer\HookRunner;
24use MediaWiki\Linker\LinkTarget;
25use MediaWiki\MainConfigNames;
26use MediaWiki\MediaWikiServices;
27use MediaWiki\Message\Message;
28use MediaWiki\Page\PageIdentity;
29use MediaWiki\Page\PageReference;
30use MediaWiki\Page\RedirectLookup;
31use MediaWiki\Request\WebRequest;
32use MediaWiki\Skin\Components\SkinComponentUtils;
33use MediaWiki\SpecialPage\SpecialPage;
34use MediaWiki\SpecialPage\SpecialPageFactory;
35use MediaWiki\Title\NamespaceInfo;
36use MediaWiki\Title\Title;
37use MediaWiki\Title\TitleFormatter;
38use MediaWiki\User\TempUser\TempUserConfig;
39use MediaWiki\User\User;
40use MediaWiki\User\UserFactory;
41use MediaWiki\User\UserGroupManager;
42use MediaWiki\User\UserGroupMembership;
43use MediaWiki\User\UserIdentity;
44use MediaWiki\User\UserIdentityLookup;
45use StatusValue;
46use Wikimedia\Message\ListType;
47use Wikimedia\Message\MessageSpecifier;
48use Wikimedia\Message\MessageValue;
49use Wikimedia\Rdbms\IDBAccessObject;
50use Wikimedia\ScopedCallback;
51
59
61 public const RIGOR_QUICK = 'quick';
62
64 public const RIGOR_FULL = 'full';
65
67 public const RIGOR_SECURE = 'secure';
68
72 public const CONSTRUCTOR_OPTIONS = [
87 ];
88
89 private HookRunner $hookRunner;
90
92 private $allRights;
93
95 private $implicitRights;
96
98 private $usersRights = [];
99
104 private $temporaryUserRights = [];
105
107 private $cachedRights = [];
108
115 private const CORE_RIGHTS = [
116 'apihighlimits',
117 'applychangetags',
118 'autoconfirmed',
119 'autocreateaccount',
120 'autopatrol',
121 'bigdelete',
122 'block',
123 'blockemail',
124 'bot',
125 'browsearchive',
126 'changetags',
127 'createaccount',
128 'createpreviouslyrenamedaccount',
129 'createwithcontentmodel',
130 'createpage',
131 'createtalk',
132 'delete',
133 'delete-redirect',
134 'deletechangetags',
135 'deletedhistory',
136 'deletedtext',
137 'deletelogentry',
138 'deleterevision',
139 'edit',
140 'editalluserpages',
141 'editcontentmodel',
142 'editinterface',
143 'editprotected',
144 'editmyoptions',
145 'editmyprivateinfo',
146 'editmyusercss',
147 'editmyuserjson',
148 'editmyuserjs',
149 'editmyuserjsredirect',
150 'editmywatchlist',
151 'editsemiprotected',
152 'editsitecss',
153 'editsitejson',
154 'editsitejs',
155 'editusercss',
156 'edituserjson',
157 'edituserjs',
158 'hideuser',
159 'ignore-restricted-groups',
160 'import',
161 'importupload',
162 'interwiki',
163 'ipblock-exempt',
164 'logentryimport',
165 'logout',
166 'managechangetags',
167 'markbotedits',
168 'mergehistory',
169 'minoredit',
170 'move',
171 'movefile',
172 'move-categorypages',
173 'move-rootuserpages',
174 'move-subpages',
175 'nominornewtalk',
176 'noratelimit',
177 'override-export-depth',
178 'pagelang',
179 'patrol',
180 'patrolmarks',
181 'protect',
182 'read',
183 'renameuser',
184 'renameuser-global',
185 'reupload',
186 'reupload-own',
187 'reupload-shared',
188 'rollback',
189 'sendemail',
190 'siteadmin',
191 'suppressionlog',
192 'suppressredirect',
193 'suppressrevision',
194 'unblockself',
195 'undelete',
196 'unwatchedpages',
197 'upload',
198 'upload_by_url',
199 'userrights',
200 'userrights-interwiki',
201 'viewmyprivateinfo',
202 'viewmywatchlist',
203 'viewsuppressed',
204 ];
205
212 private const CORE_IMPLICIT_RIGHTS = [
213 'renderfile',
214 'renderfile-nonstandard',
215 'stashedit',
216 'stashbasehtml',
217 'mailpassword',
218 'changeemail',
219 'confirmemail',
220 'linkpurge',
221 'purge',
222 ];
223
224 public function __construct(
225 private ServiceOptions $options,
226 private SpecialPageFactory $specialPageFactory,
227 private NamespaceInfo $nsInfo,
228 private GroupPermissionsLookup $groupPermissionsLookup,
229 private UserGroupManager $userGroupManager,
230 private BlockManager $blockManager,
231 private BlockErrorFormatter $blockErrorFormatter,
232 HookContainer $hookContainer,
233 private UserIdentityLookup $userIdentityLookup,
234 private RedirectLookup $redirectLookup,
235 private RestrictionStore $restrictionStore,
236 private TitleFormatter $titleFormatter,
237 private TempUserConfig $tempUserConfig,
238 private UserFactory $userFactory,
239 private ActionFactory $actionFactory
240 ) {
241 $this->options->assertRequiredOptions( self::CONSTRUCTOR_OPTIONS );
242 $this->hookRunner = new HookRunner( $hookContainer );
243 }
244
262 public function userCan( $action, User $user, LinkTarget $page, $rigor = self::RIGOR_FULL ): bool {
263 return $this->getPermissionStatus( $action, $user, $page, $rigor, true )->isGood();
264 }
265
281 public function quickUserCan( $action, User $user, LinkTarget $page ): bool {
282 return $this->userCan( $action, $user, $page, self::RIGOR_QUICK );
283 }
284
286 private const BLOCK_CODES = [
287 'blockedtext' => true,
288 'blockedtext-partial' => true,
289 'autoblockedtext' => true,
290 'systemblockedtext' => true,
291 'blockedtext-composite' => true,
292 'blockedtext-tempuser' => true,
293 'autoblockedtext-tempuser' => true,
294 ];
295
321 public function getPermissionErrors(
322 $action,
323 User $user,
324 LinkTarget $page,
325 $rigor = self::RIGOR_SECURE,
326 $ignoreErrors = []
327 ): array {
328 $status = $this->getPermissionStatus( $action, $user, $page, $rigor );
329 $result = [];
330
331 // Produce a result in the weird format used by this function
332 foreach ( $status->getErrors() as [ 'message' => $keyOrMsg, 'params' => $params ] ) {
333 $key = $keyOrMsg instanceof MessageSpecifier ? $keyOrMsg->getKey() : $keyOrMsg;
334 // Remove the errors being ignored.
335 if ( !in_array( $key, $ignoreErrors ) ) {
336 // Remove modern block info that is not expected by users of this legacy API
337 if ( isset( self::BLOCK_CODES[ $key ] ) && $keyOrMsg instanceof MessageSpecifier ) {
338 $params = $keyOrMsg->getParams();
339 $keyOrMsg = $key;
340 }
341 $result[] = [ $keyOrMsg, ...$params ];
342 }
343 }
344 return $result;
345 }
346
362 public function throwPermissionErrors(
363 $action,
364 User $user,
365 LinkTarget $page,
366 $rigor = self::RIGOR_SECURE,
367 $ignoreErrors = []
368 ): void {
369 $status = $this->getPermissionStatus(
370 $action, $user, $page, $rigor );
371 if ( $status->hasMessagesExcept( ...$ignoreErrors ) ) {
372 throw new PermissionsError( $action, $status );
373 }
374 }
375
385 public function isBlockedFrom( User $user, $page, $fromReplica = false ): bool {
386 return (bool)$this->getApplicableBlock(
387 'edit',
388 $user,
389 $fromReplica ? self::RIGOR_FULL : self::RIGOR_SECURE,
390 $page,
391 $user->getRequest()
392 );
393 }
394
413 public function getPermissionStatus(
414 $action,
415 User $user,
416 LinkTarget $page,
417 $rigor = self::RIGOR_SECURE,
418 $short = false
420 if ( !in_array( $rigor, [ self::RIGOR_QUICK, self::RIGOR_FULL, self::RIGOR_SECURE ] ) ) {
421 throw new InvalidArgumentException( "Invalid rigor parameter '$rigor'." );
422 }
423
424 // With RIGOR_QUICK we can assume automatic account creation will
425 // occur. At a higher rigor level, the caller is required to opt
426 // in by either passing in a temp placeholder user or by actually
427 // creating the account.
428 if ( $rigor === self::RIGOR_QUICK
429 && !$user->isRegistered()
430 && $this->tempUserConfig->isAutoCreateAction( $action )
431 ) {
432 $user = $this->userFactory->newTempPlaceholder();
433 }
434
435 # Read has special handling
436 if ( $action === 'read' ) {
437 $checks = [
438 $this->checkPermissionHooks( ... ),
439 $this->checkReadPermissions( ... ),
440 $this->checkUserBlock( ... ), // for wgBlockDisablesLogin
441 ];
442 } elseif ( $action === 'create' ) {
443 # Don't call checkSpecialsAndNSPermissions, checkSiteConfigPermissions
444 # or checkUserConfigPermissions here as it will lead to duplicate
445 # error messages. This is okay to do since anywhere that checks for
446 # create will also check for edit, and those checks are called for edit.
447 $checks = [
448 $this->checkQuickPermissions( ... ),
449 $this->checkPermissionHooks( ... ),
450 $this->checkPageRestrictions( ... ),
451 $this->checkCascadingSourcesRestrictions( ... ),
452 $this->checkActionPermissions( ... ),
453 $this->checkUserBlock( ... ),
454 ];
455 } else {
456 // Exclude checkUserConfigPermissions on actions that cannot change the
457 // content of the configuration pages.
458 $skipUserConfigActions = [
459 // Allow patrolling per T21818
460 'patrol',
461
462 // Allow (un)watch (T373758)
463 'editmywatchlist',
464
465 // Allow admins and oversighters to delete. For user pages we want to avoid the
466 // situation where an unprivileged user can post abusive content on
467 // their subpages and only very highly privileged users could remove it.
468 // See T200176.
469 'delete',
470 'deleterevision',
471 'suppressrevision',
472
473 // Allow admins and oversighters to view deleted content, even if they
474 // cannot restore it. See T202989
475 'deletedhistory',
476 'deletedtext',
477 'viewsuppressed',
478 ];
479
480 $checks = [
481 $this->checkQuickPermissions( ... ),
482 $this->checkPermissionHooks( ... ),
483 $this->checkSpecialsAndNSPermissions( ... ),
484 $this->checkUserPageEditPermissions( ... ),
485 $this->checkSiteConfigPermissions( ... ),
486 ];
487 if ( !in_array( $action, $skipUserConfigActions, true ) ) {
488 $checks[] = $this->checkUserConfigPermissions( ... );
489 }
490 $checks = [
491 ...$checks,
492 $this->checkPageRestrictions( ... ),
493 $this->checkCascadingSourcesRestrictions( ... ),
494 $this->checkActionPermissions( ... ),
495 $this->checkUserBlock( ... )
496 ];
497 }
498
499 $status = PermissionStatus::newEmpty();
500 foreach ( $checks as $callback ) {
501 $callback( $action, $user, $status, $rigor, $short, $page );
502
503 if ( $short && !$status->isGood() ) {
504 break;
505 }
506 }
507
508 // If RIGOR_SECURE was used and the permission check was successful, assume that the user
509 // is about to take the action, and extend their reauthentication window for any
510 // reauth operations that were checked
511 if ( $status->isGood() && $rigor === self::RIGOR_SECURE ) {
512 // FIXME move securitySensitiveOperationStatus to Session or SessionBackend, so that we
513 // can use it here. We can't dependency-inject AuthManager because of a circular dependency.
514 $authManager = MediaWikiServices::getInstance()->getAuthManager();
515 foreach ( $status->getCheckedReauthOperations() as $operation ) {
516 $authManager->securitySensitiveOperationDone( $operation );
517 }
518 }
519
520 // Clone the status to prevent users of this hook from modifying the original
521 $this->hookRunner->onPermissionStatusAudit( $page, $user, $action, $rigor, clone $status );
522
523 return $status;
524 }
525
539 private function checkPermissionHooks(
540 $action,
541 User $user,
542 PermissionStatus $status,
543 $rigor,
544 $short,
545 LinkTarget $page
546 ): void {
547 // TODO: remove when LinkTarget usage will expand further
548 $title = Title::newFromLinkTarget( $page );
549 // Use getUserPermissionsErrors instead
550 $result = '';
551 if ( !$this->hookRunner->onUserCan( $title, $user, $action, $result ) ) {
552 if ( !$result ) {
553 $status->fatal( 'badaccess-group0' );
554 }
555 return;
556 }
557 // Check getUserPermissionsErrors hook
558 if ( !$this->hookRunner->onGetUserPermissionsErrors( $title, $user, $action, $result ) ) {
559 $this->resultToStatus( $status, $result );
560 }
561 // Check getUserPermissionsErrorsExpensive hook
562 if (
563 $rigor !== self::RIGOR_QUICK
564 && !( $short && !$status->isGood() )
565 && !$this->hookRunner->onGetUserPermissionsErrorsExpensive(
566 $title, $user, $action, $result )
567 ) {
568 $this->resultToStatus( $status, $result );
569 }
570 }
571
578 private function resultToStatus( PermissionStatus $status, $result ): void {
579 if ( is_array( $result ) && count( $result ) && !is_array( $result[0] ) ) {
580 // A single array representing an error
581 $status->fatal( ...$result );
582 } elseif ( is_array( $result ) && count( $result ) && is_array( $result[0] ) ) {
583 // A nested array representing multiple errors
584 foreach ( $result as $result1 ) {
585 $this->resultToStatus( $status, $result1 );
586 }
587 } elseif ( is_string( $result ) && $result !== '' ) {
588 // A string representing a message-id
589 $status->fatal( $result );
590 } elseif ( $result instanceof MessageSpecifier ) {
591 // A message specifier representing an error
592 $status->fatal( $result );
593 } elseif ( $result === false ) {
594 // a generic "We don't want them to do that"
595 $status->fatal( 'badaccess-group0' );
596 }
597 // If we got here, $results is the empty array or empty string, which mean no errors.
598 }
599
613 private function checkReadPermissions(
614 $action,
615 User $user,
616 PermissionStatus $status,
617 $rigor,
618 $short,
619 LinkTarget $page
620 ): void {
621 // TODO: remove when LinkTarget usage will expand further
622 $title = Title::newFromLinkTarget( $page );
623
624 $whiteListRead = $this->options->get( MainConfigNames::WhitelistRead );
625 $allowed = false;
626 if ( $this->isEveryoneAllowed( 'read' ) ) {
627 // Shortcut for public wikis, allows skipping quite a bit of code
628 $allowed = true;
629 } elseif ( $this->userHasRight( $user, 'read' ) ) {
630 // If the user is allowed to read pages, they are allowed to read all pages
631 $allowed = true;
632 } elseif ( $this->isSameSpecialPage( 'Userlogin', $page )
633 || $this->isSameSpecialPage( 'PasswordReset', $page )
634 || $this->isSameSpecialPage( 'Userlogout', $page )
635 ) {
636 // Always grant access to the login page.
637 // Even anons need to be able to log in.
638 $allowed = true;
639 } elseif ( $this->isSameSpecialPage( 'RunJobs', $page ) ) {
640 // relies on HMAC key signature alone
641 $allowed = true;
642 } elseif ( is_array( $whiteListRead ) && count( $whiteListRead ) ) {
643 // Time to check the whitelist
644 // Only do these checks if there's something to check against
645 $name = $title->getPrefixedText();
646 $dbName = $title->getPrefixedDBkey();
647
648 // Check for explicit whitelisting with and without underscores
649 if ( in_array( $name, $whiteListRead, true )
650 || in_array( $dbName, $whiteListRead, true )
651 ) {
652 $allowed = true;
653 } elseif ( $page->getNamespace() === NS_MAIN ) {
654 // Old settings might have the title prefixed with
655 // a colon for main-namespace pages
656 if ( in_array( ':' . $name, $whiteListRead ) ) {
657 $allowed = true;
658 }
659 } elseif ( $title->isSpecialPage() ) {
660 // If it's a special page, ditch the subpage bit and check again
661 $name = $title->getDBkey();
662 [ $name, /* $subpage */ ] =
663 $this->specialPageFactory->resolveAlias( $name );
664 if ( $name ) {
665 $pure = SpecialPage::getTitleFor( $name )->getPrefixedText();
666 if ( in_array( $pure, $whiteListRead, true ) ) {
667 $allowed = true;
668 }
669 }
670 }
671 }
672
673 $whitelistReadRegexp = $this->options->get( MainConfigNames::WhitelistReadRegexp );
674 if ( !$allowed && is_array( $whitelistReadRegexp )
675 && $whitelistReadRegexp
676 ) {
677 $name = $title->getPrefixedText();
678 // Check for regex whitelisting
679 foreach ( $whitelistReadRegexp as $listItem ) {
680 if ( preg_match( $listItem, $name ) ) {
681 $allowed = true;
682 break;
683 }
684 }
685 }
686
687 if ( !$allowed ) {
688 // If the title is not allowed, give extensions a chance to do so
689 $this->hookRunner->onTitleReadWhitelist( $title, $user, $allowed );
690 if ( !$allowed ) {
691 $this->missingPermissionError( $action, $short, $status );
692 }
693 }
694 }
695
703 private function missingPermissionError( string $action, bool $short, PermissionStatus $status ): void {
704 // We avoid expensive display logic for quickUserCan's and such
705 if ( $short ) {
706 $status->fatal( 'badaccess-group0' );
707 return;
708 }
709
710 // TODO: it would be a good idea to replace the method below with something else like
711 // maybe callback injection
712 $context = RequestContext::getMain();
713 $fatalStatus = $this->newFatalPermissionDeniedStatus( $action, $context );
714 $status->merge( $fatalStatus );
715 }
716
727 public function newFatalPermissionDeniedStatus( $permission, IContextSource $context ): StatusValue {
728 $groupsWithPermission = $this->groupPermissionsLookup->getGroupsWithPermission( $permission );
729 if ( !$groupsWithPermission ) {
730 // Nobody has the right
731 $status = PermissionStatus::newFatal( 'badaccess-group0' );
732 $status->setPermission( $permission );
733 return $status;
734 }
735
736 $groupLinks = array_map(
737 static fn ( $group ) => UserGroupMembership::getLinkWiki( $group, $context ),
738 $groupsWithPermission
739 );
740
741 $userDisabledGroups = $this->userGroupManager->getUserDisabledGroups( $context->getUser() );
742 $disabledGroupsWithPermission = array_intersect( $groupsWithPermission, $userDisabledGroups );
743 if ( $disabledGroupsWithPermission !== [] ) {
744 // One of the groups you are in has the right, however you don't
745 // meet the restrictions to be in that group
746 $disabledGroupsWithPermissionNames = array_map(
747 static fn ( $group ) => $context->getLanguage()->getGroupName( $group ),
748 $disabledGroupsWithPermission
749 );
751 'badaccess-groups-disabled',
752 Message::listParam( $groupLinks, ListType::COMMA ),
753 count( $groupLinks ),
754 Message::listParam( $disabledGroupsWithPermissionNames, ListType::COMMA ),
755 count( $disabledGroupsWithPermissionNames )
756 );
757 $status->setPermission( $permission );
758 return $status;
759 }
760
761 $user = $context->getUser();
762 $userGroups = $this->userGroupManager->getUserEffectiveGroups( $user );
763 if ( array_intersect( $userGroups, $groupsWithPermission ) ) {
764 // You are in a group that should have this right, but don't for some reason
765 // and we don't know why.
766 // (Possible causes of this include $wgRevokePermissions or an extension hook
767 // that modiied the permission structure)
768 $status = PermissionStatus::newFatal( 'badaccess-group0' );
769 $status->setPermission( $permission );
770 return $status;
771 }
772 // You aren't in any groups that have this right (this is the most commn case)
773 $status = PermissionStatus::newFatal(
774 'badaccess-groups',
775 Message::listParam( $groupLinks, ListType::COMMA ),
776 count( $groupLinks )
777 );
778 $status->setPermission( $permission );
779 return $status;
780 }
781
789 private function isSameSpecialPage( $name, LinkTarget $page ): bool {
790 if ( $page->getNamespace() === NS_SPECIAL ) {
791 [ $pageName ] = $this->specialPageFactory->resolveAlias( $page->getDBkey() );
792 if ( $name === $pageName ) {
793 return true;
794 }
795 }
796 return false;
797 }
798
812 private function checkUserBlock(
813 $action,
814 User $user,
815 PermissionStatus $status,
816 $rigor,
817 $short,
818 LinkTarget $page
819 ): void {
820 $block = $this->getApplicableBlock(
821 $action,
822 $user,
823 $rigor,
824 $page,
825 $user->getRequest()
826 );
827
828 if ( $block ) {
829 $status->setBlock( $block );
830
831 // @todo FIXME: Pass the relevant context into this function.
832 $context = RequestContext::getMain();
833 $messages = $this->blockErrorFormatter->getMessages(
834 $block,
835 $user,
836 $context->getRequest()->getIP()
837 );
838
839 foreach ( $messages as $message ) {
840 $status->fatal( $message );
841 }
842 }
843 }
844
861 public function getApplicableBlock(
862 string $action,
863 User $user,
864 string $rigor,
865 $page,
867 ): ?Block {
868 // Unblocking handled in SpecialUnblock
869 if ( $rigor === self::RIGOR_QUICK || in_array( $action, [ 'unblock' ] ) ) {
870 return null;
871 }
872
873 // Optimize for a very common case
874 if ( $action === 'read' && !$this->options->get( MainConfigNames::BlockDisablesLogin ) ) {
875 return null;
876 }
877
878 // Implicit rights aren't blockable (T350117, T350202).
879 if ( in_array( $action, $this->getImplicitRights(), true ) ) {
880 return null;
881 }
882
883 $useReplica = $rigor !== self::RIGOR_SECURE;
884 $isExempt = $this->userHasRight( $user, 'ipblock-exempt' );
885 $requestIfNotExempt = $isExempt ? null : $request;
886
887 // Create account blocks are implemented separately due to weird IP exemption rules
888 if ( in_array( $action, [ 'createaccount', 'autocreateaccount' ], true ) ) {
889 return $this->blockManager->getCreateAccountBlock(
890 $user,
891 $requestIfNotExempt,
892 $useReplica
893 );
894 }
895
896 $block = $this->blockManager->getBlock( $user, $requestIfNotExempt, $useReplica );
897 if ( !$block ) {
898 return null;
899 }
900 return $this->filterBlockForAction( $block, $action, $user, $page );
901 }
902
912 private function filterBlockForAction(
913 AbstractBlock $block,
914 string $action,
915 User $user,
916 $page
917 ): ?AbstractBlock {
918 $userIsHidden = $block->getHideName();
919
920 // Remove elements from the block that explicitly allow the action
921 // (like "read" or "upload").
922 $block = $this->blockManager->filter(
923 $block,
924 static function ( AbstractBlock $originalBlock ) use ( $action ) {
925 // Remove the block if it explicitly allows the action
926 return $originalBlock->appliesToRight( $action ) !== false;
927 }
928 );
929 if ( !$block ) {
930 return null;
931 }
932
933 // Convert the input page to a Title
934 $targetTitle = null;
935 if ( $page ) {
936 $targetTitle = $page instanceof PageReference ?
937 Title::castFromPageReference( $page ) :
938 Title::castFromLinkTarget( $page );
939
940 if ( !$targetTitle->canExist() ) {
941 $targetTitle = null;
942 }
943 }
944
945 // What gets passed into this method is a user right, not an action name.
946 // There is no way to instantiate an action by restriction. However, this
947 // will get the action where the restriction is the same. This may result
948 // in actions being blocked that shouldn't be.
949 $actionInfo = $this->actionFactory->getActionInfo( $action, $targetTitle );
950
951 // Ensure that the retrieved action matches the restriction.
952 if ( $actionInfo && $actionInfo->getRestriction() !== $action ) {
953 $actionInfo = null;
954 }
955
956 // Return null if the action does not require an unblocked user.
957 // If no ActionInfo is returned, assume that the action requires unblock
958 // which is the default.
959 // NOTE: We may get null here even for known actions, if a wiki's main page
960 // is set to a special page, e.g. Special:MyLanguage/Main_Page (T348451, T346036).
961 if ( $actionInfo && !$actionInfo->requiresUnblock() ) {
962 return null;
963 }
964
965 // Remove elements from the block that do not apply to the specific page
966 if ( $targetTitle ) {
967 $targetIsUserTalk = !$userIsHidden && $targetTitle->equals( $user->getTalkPage() );
968 $block = $this->blockManager->filter(
969 $block,
970 static function ( AbstractBlock $originalBlock )
971 use ( $action, $targetTitle, $targetIsUserTalk ) {
972 if ( $originalBlock->appliesToRight( $action ) ) {
973 // An action block takes precedence over appliesToTitle().
974 // Block::appliesToRight('edit') always returns null,
975 // allowing title-based exemptions to take effect.
976 return true;
977 } elseif ( $targetIsUserTalk ) {
978 // Special handling for a user's own talk page. The block is not aware
979 // of the user, so this must be done here.
980 return $originalBlock->appliesToUsertalk( $targetTitle );
981 } else {
982 return $originalBlock->appliesToTitle( $targetTitle );
983 }
984 }
985 );
986 }
987
988 if ( $targetTitle && $block instanceof AbstractBlock ) {
989 // Allow extensions to let a blocked user access a particular page
990 $allowUsertalk = $block->isUsertalkEditAllowed();
991 $blocked = true;
992 $this->hookRunner->onUserIsBlockedFrom( $user, $targetTitle, $blocked, $allowUsertalk );
993 if ( !$blocked ) {
994 $block = null;
995 }
996 }
997 return $block;
998 }
999
1013 private function checkQuickPermissions(
1014 $action,
1015 User $user,
1016 PermissionStatus $status,
1017 $rigor,
1018 $short,
1019 LinkTarget $page
1020 ): void {
1021 // TODO: remove when LinkTarget usage will expand further
1022 $title = Title::newFromLinkTarget( $page );
1023
1024 // This method is always called first, so $status is guaranteed to be empty, so we can
1025 // just pass an empty $errors array, instead of converting it to the legacy format and back.
1026 $errors = [];
1027 if ( !$this->hookRunner->onTitleQuickPermissions( $title, $user, $action,
1028 $errors, $rigor !== self::RIGOR_QUICK, $short )
1029 ) {
1030 // $errors is an array of results, not a result, but resultToStatus() handles
1031 // arrays of arrays with recursion so this will work
1032 $this->resultToStatus( $status, $errors );
1033 return;
1034 }
1035
1036 $isSubPage =
1037 $this->nsInfo->hasSubpages( $title->getNamespace() ) &&
1038 str_contains( $title->getText(), '/' );
1039
1040 if ( $action === 'create' ) {
1041 $right = $this->nsInfo->isTalk( $title->getNamespace() ) ? 'createtalk' : 'createpage';
1042 $errorMsgKey = $user->isNamed() ? 'nocreate-loggedin' : 'nocreatetext';
1043 $this->mergeUserRightStatus( $status, $user, $right, $rigor, !$short, $errorMsgKey );
1044 } elseif ( $action === 'move' ) {
1045 if ( $title->getNamespace() === NS_USER && !$isSubPage ) {
1046 $this->mergeUserRightStatus( $status, $user, 'move-rootuserpages', $rigor, !$short,
1047 'cant-move-user-page' );
1048 }
1049
1050 // Check if user is allowed to move files if it's a file
1051 if ( $title->getNamespace() === NS_FILE ) {
1052 $this->mergeUserRightStatus( $status, $user, 'movefile', $rigor, !$short, 'movenotallowedfile' );
1053 }
1054
1055 // Check if user is allowed to move category pages if it's a category page
1056 if ( $title->getNamespace() === NS_CATEGORY ) {
1057 $this->mergeUserRightStatus( $status, $user, 'move-categorypages', $rigor, !$short,
1058 'cant-move-category-page' );
1059 }
1060
1061 $moveStatus = $this->getUserRightStatus( $user, 'move', $rigor, !$short );
1062 if ( !$moveStatus->isOK() ) {
1063 // User can't move anything
1064 $userCanMove = $this->groupPermissionsLookup
1065 ->groupHasPermission( 'user', 'move' );
1066 $autoconfirmedCanMove = $this->groupPermissionsLookup
1067 ->groupHasPermission( 'autoconfirmed', 'move' );
1068 if ( $user->isAnon()
1069 && ( $userCanMove || $autoconfirmedCanMove )
1070 ) {
1071 // custom message if logged-in users without any special rights can move
1072 $status->fatal( 'movenologintext' );
1073 } elseif ( $user->isTemp() && $autoconfirmedCanMove ) {
1074 // Temp user may be able to move if they log in as a proper account
1075 $status->fatal( 'movenologintext' );
1076 } else {
1077 $status->fatal( 'movenotallowed' );
1078 }
1079 if ( !$short ) {
1080 $status->merge( $moveStatus );
1081 }
1082 }
1083 } elseif ( $action === 'move-target' ) {
1084 if ( !$this->mergeUserRightStatus( $status, $user, 'move', $rigor, !$short, 'movenotallowed' ) ) {
1085 // User can't move anything, don't check the conditions below
1086 } elseif ( $title->getNamespace() === NS_USER && !$isSubPage ) {
1087 // Show user page-specific message only if the user can move other pages
1088 $this->mergeUserRightStatus( $status, $user, 'move-rootuserpages', $rigor, !$short,
1089 'cant-move-to-user-page' );
1090 } elseif ( $title->getNamespace() === NS_CATEGORY ) {
1091 // Show category page-specific message only if the user can move other pages
1092 $this->mergeUserRightStatus( $status, $user, 'move-categorypages', $rigor, !$short,
1093 'cant-move-to-category-page' );
1094 }
1095 } elseif ( $action === 'autocreateaccount' ) {
1096 // createaccount implies autocreateaccount
1097 $this->mergeUserRightStatus( $status, $user, [ 'autocreateaccount', 'createaccount' ], $rigor, !$short );
1098 } else {
1099 $this->mergeUserRightStatus( $status, $user, $action, $rigor, !$short );
1100 }
1101 }
1102
1119 private function checkPageRestrictions(
1120 $action,
1121 UserIdentity $user,
1122 PermissionStatus $status,
1123 $rigor,
1124 $short,
1125 LinkTarget $page
1126 ): void {
1127 // TODO: remove & rework upon further use of LinkTarget
1128 $title = Title::newFromLinkTarget( $page );
1129 foreach ( $this->restrictionStore->getRestrictions( $title, $action ) as $level ) {
1130 // Messages: restriction-level-sysop, restriction-level-autoconfirmed
1131 $levelMsg = MessageValue::new( "restriction-level-$level" );
1132
1133 $right = $level;
1134 // Backwards compatibility, rewrite sysop -> editprotected
1135 if ( $right === 'sysop' ) {
1136 $right = 'editprotected';
1137 }
1138 // Backwards compatibility, rewrite autoconfirmed -> editsemiprotected
1139 if ( $right === 'autoconfirmed' ) {
1140 $right = 'editsemiprotected';
1141 }
1142 if ( $right == '' ) {
1143 continue;
1144 }
1145 if ( !$this->userHasRight( $user, $right ) ) {
1146 // The parameters are not used by the default message text,
1147 // but they're available to be used in on-wiki overrides
1148 $status->fatal( 'protectedpagetext', $right, $action, $levelMsg );
1149 } elseif ( $this->restrictionStore->areRestrictionsCascading( $title ) &&
1150 !$this->userHasRight( $user, 'protect' )
1151 ) {
1152 // The parameters are not used by the default message text,
1153 // but they're available to be used in on-wiki overrides
1154 $status->fatal( 'protectedpagetext', 'protect', $action, $levelMsg );
1155 }
1156 }
1157 }
1158
1172 private function checkCascadingSourcesRestrictions(
1173 $action,
1174 UserIdentity $user,
1175 PermissionStatus $status,
1176 $rigor,
1177 $short,
1178 LinkTarget $page
1179 ): void {
1180 // TODO: remove & rework upon further use of LinkTarget
1181 $title = Title::newFromLinkTarget( $page );
1182
1183 if ( $rigor !== self::RIGOR_QUICK && !$title->isUserConfigPage() ) {
1184 [ $sources, $restrictions, $tlSources, $ilSources ] = $this->restrictionStore
1185 ->getCascadeProtectionSources( $title );
1186
1187 // If the file Wikitext isn't transcluded then we
1188 // don't care about edit cascade restrictions for edit action
1189 if ( $action === 'edit' && $page->getNamespace() === NS_FILE && !$tlSources ) {
1190 return;
1191 }
1192
1193 // For the purposes of cascading protection, edit restrictions should apply to uploads or moves
1194 // Thus remap upload and move to edit
1195 // Unless the file content itself is not transcluded
1196 if ( $ilSources && ( $action === 'upload' || $action === 'move' ) ) {
1197 $restrictedAction = 'edit';
1198 } else {
1199 $restrictedAction = $action;
1200 }
1201
1202 // Cascading protection depends on more than this page...
1203 // Several cascading protected pages may include this page...
1204 // Check each cascading level
1205 // This is only for protection restrictions, not for all actions
1206 if ( isset( $restrictions[$restrictedAction] ) ) {
1207 foreach ( $restrictions[$restrictedAction] as $right ) {
1208 // Backwards compatibility, rewrite sysop -> editprotected
1209 if ( $right === 'sysop' ) {
1210 $right = 'editprotected';
1211 }
1212 // Backwards compatibility, rewrite autoconfirmed -> editsemiprotected
1213 if ( $right === 'autoconfirmed' ) {
1214 $right = 'editsemiprotected';
1215 }
1216 if ( $right != '' && !$this->userHasAllRights( $user, 'protect', $right ) ) {
1217 $wikiPages = '';
1218 foreach ( $sources as $pageIdentity ) {
1219 $wikiPages .= '* [[:' . $this->titleFormatter->getPrefixedText( $pageIdentity ) . "]]\n";
1220 }
1221 $status->fatal( 'cascadeprotected', count( $sources ), $wikiPages, $action );
1222 }
1223 }
1224 }
1225 }
1226 }
1227
1241 private function checkActionPermissions(
1242 $action,
1243 User $user,
1244 PermissionStatus $status,
1245 $rigor,
1246 $short,
1247 LinkTarget $page
1248 ): void {
1249 // TODO: remove & rework upon further use of LinkTarget
1250 $title = Title::newFromLinkTarget( $page );
1251
1252 if ( $rigor !== self::RIGOR_QUICK && !defined( 'MW_NO_SESSION' ) ) {
1253 $sessionRestrictions = $user->getRequest()->getSession()->getRestrictions();
1254 if ( $sessionRestrictions ) {
1255 $userCan = $sessionRestrictions->userCan( $title );
1256 if ( !$userCan->isOK() ) {
1257 $status->merge( $userCan );
1258 }
1259 }
1260 }
1261
1262 if ( $action === 'protect' ) {
1263 if ( !$this->getPermissionStatus( 'edit', $user, $title, $rigor, true )->isGood() ) {
1264 // If they can't edit, they shouldn't protect.
1265 $status->fatal( 'protect-cantedit' );
1266 }
1267 } elseif ( $action === 'create' ) {
1268 $createProtection = $this->restrictionStore->getCreateProtection( $title );
1269 if ( $createProtection ) {
1270 if ( $createProtection['permission'] == ''
1271 || !$this->userHasRight( $user, $createProtection['permission'] )
1272 ) {
1273 $protectUserIdentity = $this->userIdentityLookup
1274 ->getUserIdentityByUserId( $createProtection['user'] );
1275 $status->fatal(
1276 'titleprotected',
1277 $protectUserIdentity ? $protectUserIdentity->getName() : '',
1278 $createProtection['reason']
1279 );
1280 }
1281 }
1282 } elseif ( $action === 'move' ) {
1283 // Check for immobile pages
1284 if ( !$this->nsInfo->isMovable( $title->getNamespace() ) ) {
1285 // Specific message for this case
1286 $nsText = $title->getNsText();
1287 if ( $nsText === '' ) {
1288 $nsText = wfMessage( 'blanknamespace' )->text();
1289 }
1290 $status->fatal( 'immobile-source-namespace', $nsText );
1291 } elseif ( !$title->isMovable() ) {
1292 // Less specific message for rarer cases
1293 $status->fatal( 'immobile-source-page' );
1294 }
1295 } elseif ( $action === 'move-target' ) {
1296 if ( !$this->nsInfo->isMovable( $title->getNamespace() ) ) {
1297 $nsText = $title->getNsText();
1298 if ( $nsText === '' ) {
1299 $nsText = wfMessage( 'blanknamespace' )->text();
1300 }
1301 $status->fatal( 'immobile-target-namespace', $nsText );
1302 } elseif ( !$title->isMovable() ) {
1303 $status->fatal( 'immobile-target-page' );
1304 }
1305 } elseif ( $action === 'delete' || $action === 'delete-redirect' ) {
1306 $tempStatus = PermissionStatus::newEmpty();
1307 $this->checkPageRestrictions( 'edit', $user, $tempStatus, $rigor, true, $title );
1308 if ( $tempStatus->isGood() ) {
1309 $this->checkCascadingSourcesRestrictions( 'edit',
1310 $user, $tempStatus, $rigor, true, $title );
1311 }
1312 if ( !$tempStatus->isGood() ) {
1313 // If protection keeps them from editing, they shouldn't be able to delete.
1314 $status->fatal( 'deleteprotected' );
1315 }
1316 if ( $rigor !== self::RIGOR_QUICK
1317 && $action === 'delete'
1318 && $this->options->get( MainConfigNames::DeleteRevisionsLimit )
1319 && !$this->userCan( 'bigdelete', $user, $title )
1320 && $title->isBigDeletion()
1321 ) {
1322 // NOTE: This check is deprecated since 1.37, see T288759
1323 $status->fatal(
1324 'delete-toobig',
1325 Message::numParam( $this->options->get( MainConfigNames::DeleteRevisionsLimit ) )
1326 );
1327 }
1328 } elseif ( $action === 'undelete' ) {
1329 if ( !$this->getPermissionStatus( 'edit', $user, $title, $rigor, true )->isGood() ) {
1330 // Undeleting implies editing
1331 $status->fatal( 'undelete-cantedit' );
1332 }
1333 if ( !$title->exists()
1334 && !$this->getPermissionStatus( 'create', $user, $title, $rigor, true )->isGood()
1335 ) {
1336 // Undeleting where nothing currently exists implies creating
1337 $status->fatal( 'undelete-cantcreate' );
1338 }
1339 } elseif ( $action === 'edit' ) {
1340 if ( $this->options->get( MainConfigNames::EmailConfirmToEdit )
1341 && !$user->isEmailConfirmed()
1342 ) {
1343 $status->fatal( 'confirmedittext' );
1344 }
1345
1346 if ( !$title->exists() ) {
1347 $status->merge(
1348 $this->getPermissionStatus( 'create', $user, $title, $rigor, $short )
1349 );
1350 }
1351 }
1352 }
1353
1367 private function checkSpecialsAndNSPermissions(
1368 $action,
1369 UserIdentity $user,
1370 PermissionStatus $status,
1371 $rigor,
1372 $short,
1373 LinkTarget $page
1374 ): void {
1375 // TODO: remove & rework upon further use of LinkTarget
1376 $title = Title::newFromLinkTarget( $page );
1377
1378 // Only 'createaccount' can be performed on special pages,
1379 // which don't actually exist in the DB.
1380 if ( $title->getNamespace() === NS_SPECIAL
1381 && !in_array( $action, [ 'createaccount', 'autocreateaccount' ], true )
1382 ) {
1383 $status->fatal( 'ns-specialprotected' );
1384 }
1385
1386 // Check $wgNamespaceProtection for restricted namespaces
1387 if ( $this->isNamespaceProtected( $title->getNamespace(), $user )
1388 // Allow admins and oversighters to view deleted content, even if they
1389 // cannot restore it. See T362536. Allow (un)watch too (T373758)
1390 && !in_array( $action, [ 'deletedhistory', 'deletedtext', 'viewsuppressed', 'editmywatchlist' ], true )
1391 ) {
1392 $ns = $title->getNamespace() === NS_MAIN ?
1393 wfMessage( 'nstab-main' )->text() : $title->getNsText();
1394 if ( $title->getNamespace() === NS_MEDIAWIKI ) {
1395 $status->fatal( 'protectedinterface', $action );
1396 } else {
1397 $status->fatal( 'namespaceprotected', $ns, $action );
1398 }
1399 }
1400 }
1401
1415 private function checkSiteConfigPermissions(
1416 $action,
1417 UserIdentity $user,
1418 PermissionStatus $status,
1419 $rigor,
1420 $short,
1421 LinkTarget $page
1422 ): void {
1423 // TODO: remove & rework upon further use of LinkTarget
1424 $title = Title::newFromLinkTarget( $page );
1425
1426 if ( $action === 'patrol' || $action === 'editmywatchlist' ) {
1427 return;
1428 }
1429
1430 if ( in_array( $action, [ 'deletedhistory', 'deletedtext', 'viewsuppressed' ], true ) ) {
1431 // Allow admins and oversighters to view deleted content, even if they
1432 // cannot restore it. See T202989
1433 // Not using the same handling in `getPermissionStatus` as the checks
1434 // for skipping `checkUserConfigPermissions` since normal admins can delete
1435 // user scripts, but not sitewide scripts
1436 return;
1437 }
1438
1439 // Sitewide CSS/JSON/JS/RawHTML changes, like all NS_MEDIAWIKI changes, also require the
1440 // editinterface right. That's implemented as a restriction so no check needed here.
1441 if ( $title->isSiteCssConfigPage() ) {
1442 $this->mergeUserRightStatus( $status, $user, 'editsitecss', $rigor, !$short,
1443 'sitecssprotected', $action );
1444 } elseif ( $title->isSiteJsonConfigPage() ) {
1445 $this->mergeUserRightStatus( $status, $user, 'editsitejson', $rigor, !$short,
1446 'sitejsonprotected', $action );
1447 } elseif ( $title->isSiteJsConfigPage() ) {
1448 $this->mergeUserRightStatus( $status, $user, 'editsitejs', $rigor, !$short,
1449 'sitejsprotected', $action );
1450 } elseif ( $title->isRawHtmlMessage() ) {
1451 // Editing raw HTML messages requires both editsitejs AND editsitecss
1452 if (
1453 $this->mergeUserRightStatus( $status, $user, 'editsitejs', $rigor, !$short,
1454 'siterawhtmlprotected', $action )
1455 ) {
1456 $this->mergeUserRightStatus( $status, $user, 'editsitecss', $rigor, !$short,
1457 'siterawhtmlprotected', $action );
1458 }
1459 }
1460 }
1461
1475 private function checkUserPageEditPermissions(
1476 $action,
1477 UserIdentity $user,
1478 PermissionStatus $status,
1479 $rigor,
1480 $short,
1481 LinkTarget $page
1482 ): void {
1483 if ( !$this->options->get( MainConfigNames::RestrictUserPageEditing ) ) {
1484 return;
1485 }
1486
1487 if ( !in_array( $action, [ 'edit', 'move', 'move-target' ], true ) ) {
1488 return;
1489 }
1490
1491 // TODO: remove & rework upon further use of LinkTarget
1492 $title = Title::newFromLinkTarget( $page );
1493
1494 if (
1495 $title->getNamespace() === NS_USER
1496 && $title->getRootText() !== $user->getName()
1497 && !$this->userHasRight( $user, 'editalluserpages' )
1498 ) {
1499 $this->missingPermissionError( 'editalluserpages', $short, $status );
1500 }
1501 }
1502
1516 private function checkUserConfigPermissions(
1517 $action,
1518 UserIdentity $user,
1519 PermissionStatus $status,
1520 $rigor,
1521 $short,
1522 LinkTarget $page
1523 ): void {
1524 // TODO: remove & rework upon further use of LinkTarget
1525 $title = Title::newFromLinkTarget( $page );
1526
1527 // Protect css/json/js subpages of user pages
1528 // XXX: this might be better using restrictions
1529 if ( preg_match( '/^' . preg_quote( $user->getName(), '/' ) . '\//', $title->getText() ) ) {
1530 // Users need editmyuser* to edit their own CSS/JSON/JS subpages.
1531 if ( $title->isUserCssConfigPage() ) {
1532 $this->mergeUserRightStatus( $status, $user, [ 'editmyusercss', 'editusercss' ], $rigor, !$short,
1533 'mycustomcssprotected', $action );
1534 } elseif ( $title->isUserJsonConfigPage() ) {
1535 $this->mergeUserRightStatus( $status, $user, [ 'editmyuserjson', 'edituserjson' ], $rigor, !$short,
1536 'mycustomjsonprotected', $action );
1537 } elseif ( $title->isUserJsConfigPage() ) {
1538 if (
1539 $this->mergeUserRightStatus( $status, $user, [ 'editmyuserjs', 'edituserjs' ], $rigor, !$short,
1540 'mycustomjsprotected', $action )
1541 ) {
1542 // T207750 - do not allow users to edit a redirect if they couldn't edit the target
1543 $target = $this->redirectLookup->getRedirectTarget( $title );
1544 if ( $target && (
1545 !$target->inNamespace( NS_USER )
1546 || !preg_match( '/^' . preg_quote( $user->getName(), '/' ) . '\//', $target->getText() )
1547 ) ) {
1548 // The target is not a user JS page belonging to the same user
1549 // Only allow editing if the user has either editmyuserjsredirect or edituserjs
1550 $this->mergeUserRightStatus( $status, $user, [ 'editmyuserjsredirect', 'edituserjs' ],
1551 $rigor, !$short, 'mycustomjsredirectprotected', $action );
1552 }
1553 }
1554 }
1555 } else {
1556 // Users need edituser* to edit others' CSS/JSON/JS subpages.
1557 // The checks to exclude deletion/suppression, which cannot be used for
1558 // attacks and should be excluded to avoid the situation where an
1559 // unprivileged user can post abusive content on their subpages
1560 // and only very highly privileged users could remove it,
1561 // are now a part of `getPermissionStatus` and this method isn't called.
1562 if ( $title->isUserCssConfigPage() ) {
1563 $this->mergeUserRightStatus( $status, $user, 'editusercss', $rigor, !$short,
1564 'customcssprotected', $action );
1565 } elseif ( $title->isUserJsonConfigPage() ) {
1566 $this->mergeUserRightStatus( $status, $user, 'edituserjson', $rigor, !$short,
1567 'customjsonprotected', $action );
1568 } elseif ( $title->isUserJsConfigPage() ) {
1569 $this->mergeUserRightStatus( $status, $user, 'edituserjs', $rigor, !$short,
1570 'customjsprotected', $action );
1571 }
1572 }
1573 }
1574
1600 public function getUserRightStatus(
1601 UserIdentity $user,
1602 string $right,
1603 string $rigor = self::RIGOR_SECURE,
1604 bool $detailedPermissionErrors = true,
1605 bool $recordSecuritySensitiveOperation = false
1606 ): PermissionStatus {
1607 $status = PermissionStatus::newEmpty();
1608
1609 // For compatibility with userHasRight(), allow the empty action
1610 if ( $right === '' ) {
1611 return $status;
1612 }
1613
1614 // Use strict parameter to avoid matching numeric 0 accidentally inserted
1615 // by misconfiguration: 0 == 'foo'
1616 if (
1617 !in_array( $right, $this->getImplicitRights(), true )
1618 && !in_array( $right, $this->getUserPermissions( $user ), true )
1619 ) {
1620 $this->missingPermissionError( $right, !$detailedPermissionErrors, $status );
1621 return $status;
1622 }
1623
1624 // Deny actions that require reauthentication if the user hasn't recently reauthenticated
1625 $operation = $this->options->get( MainConfigNames::ReauthenticateForActions )[ $right ] ?? false;
1626 if ( $operation !== false ) {
1627 // Record the operation regardless of whether the reauth requirement
1628 // is currently satisfied, so callers can arm client-side reauth UX
1629 // for the case where it expires mid-action (T430197).
1630 $status->addCheckedReauthOperation( $operation );
1631
1632 // securitySensitiveOperationStatus() can only check for the currently logged-in user
1633 // If $user is not that user, we can't check whether they've reauthenticated, so behave
1634 // as if they haven't.
1635 // FIXME move securitySensitiveOperationStatus to Session or SessionBackend, so that we
1636 // can use it here. We can't dependency-inject AuthManager because of a circular dependency.
1637 $authManager = MediaWikiServices::getInstance()->getAuthManager();
1638 $reauth = $authManager->getRequest()->getSession()->getUser()->equals( $user ) ?
1639 $authManager->securitySensitiveOperationStatus( $operation ) :
1640 AuthManager::SEC_FAIL;
1641
1642 if ( $reauth === AuthManager::SEC_REAUTH ) {
1643 $status->setReauthOperation( $operation );
1644 if ( $rigor === self::RIGOR_SECURE ) {
1645 $context = RequestContext::getMain();
1646 $title = $context->getTitle();
1647 $returnToParams = $title !== null
1648 ? SkinComponentUtils::getReturnToParam(
1649 $title,
1650 $context->getRequest(),
1651 $context->getAuthority()
1652 )
1653 : [];
1654 $loginUrl = SpecialPage::getSafeTitleFor( 'Userlogin' )
1655 ?->getFullURL( [ 'force' => $operation ] + $returnToParams );
1656 // The operation is passed as $1 for compatibility with older translations
1657 // that still use it inside a {{fullurl:...}} to build the login link. New
1658 // translations should use $2 (the full URL) directly.
1659 $status->fatal( ApiMessage::create(
1660 [ 'badaccess-reauthenticate', $operation, $loginUrl ],
1661 'reauthenticate',
1662 [ 'operation' => $operation ]
1663 ) );
1664 }
1665 } elseif ( $reauth === AuthManager::SEC_FAIL ) {
1666 $status->setReauthOperation( $operation );
1667 // If the user cannot reauthenticate, that is fatal regardless of $rigor
1668 $status->fatal( 'badaccess-cannotreauthenticate', $operation );
1669 } elseif ( $recordSecuritySensitiveOperation && $rigor === self::RIGOR_SECURE ) {
1670 $authManager->securitySensitiveOperationDone( $operation );
1671 }
1672 }
1673
1674 return $status;
1675 }
1676
1696 private function mergeUserRightStatus(
1697 PermissionStatus $status,
1698 UserIdentity $user,
1699 string|array $right,
1700 string $rigor = self::RIGOR_SECURE,
1701 bool $detailedPermissionErrors = true,
1702 ?string $extraError = null,
1703 ...$extraParams
1704 ): bool {
1705 $rightStatus = null;
1706 foreach ( (array)$right as $r ) {
1707 $rightStatus = $this->getUserRightStatus( $user, $r, $rigor, $detailedPermissionErrors );
1708 if ( $rightStatus->isOK() ) {
1709 // Success, stop here
1710 $status->merge( $rightStatus );
1711 return true;
1712 }
1713 }
1714
1715 // If we got here, the user doesn't have any of the requested rights
1716 // First add $extraError, if it exists...
1717 if ( $extraError !== null ) {
1718 $status->fatal( $extraError, ...$extraParams );
1719 }
1720 // ...then merge in the last permission error. But don't combine an $extraError with a
1721 // non-detailed "permission denied" error
1722 if ( $rightStatus && ( $extraError === null || $detailedPermissionErrors ) ) {
1723 $status->merge( $rightStatus );
1724 }
1725 return false;
1726 }
1727
1739 public function userHasRight(
1740 UserIdentity $user,
1741 $action = '',
1742 bool $recordSecuritySensitiveOperation = false
1743 ): bool {
1744 if ( $action === '' ) {
1745 // In the spirit of DWIM
1746 return true;
1747 }
1748
1749 return $this->getUserRightStatus(
1750 $user, $action, self::RIGOR_SECURE, false, $recordSecuritySensitiveOperation
1751 )->isOK();
1752 }
1753
1762 public function userHasAnyRight( UserIdentity $user, ...$actions ): bool {
1763 foreach ( $actions as $action ) {
1764 if ( $this->userHasRight( $user, $action ) ) {
1765 return true;
1766 }
1767 }
1768 return false;
1769 }
1770
1779 public function userHasAllRights( UserIdentity $user, ...$actions ): bool {
1780 foreach ( $actions as $action ) {
1781 if ( !$this->userHasRight( $user, $action ) ) {
1782 return false;
1783 }
1784 }
1785 return true;
1786 }
1787
1797 public function getUserPermissions( UserIdentity $user, bool $includePrivateInfo = true ): array {
1798 $rightsCacheKey = $this->getRightsCacheKey( $user, $includePrivateInfo );
1799 if ( !isset( $this->usersRights[ $rightsCacheKey ] ) ) {
1800 $userObj = $this->userFactory->newFromUserIdentity( $user );
1801 $effectiveGroups = $this->userGroupManager->getUserEffectiveGroups(
1802 $user, IDBAccessObject::READ_NORMAL, false, $includePrivateInfo );
1803 $rights = $this->groupPermissionsLookup->getGroupPermissions( $effectiveGroups );
1804 // Hook requires a full User object
1805 $this->hookRunner->onUserGetRights( $userObj, $rights );
1806
1807 // Deny any rights denied by the user's session, unless this
1808 // endpoint has no sessions.
1809 if ( !defined( 'MW_NO_SESSION' ) ) {
1810 // FIXME: $userObj->getRequest().. need to be replaced with something else
1811 $allowedRights = $userObj->getRequest()->getSession()->getAllowedUserRights();
1812 if ( $allowedRights !== null ) {
1813 $rights = array_intersect( $rights, $allowedRights );
1814 }
1815 }
1816
1817 // Hook requires a full User object
1818 $this->hookRunner->onUserGetRightsRemove( $userObj, $rights );
1819 // Force reindexation of rights when a hook has unset one of them
1820 $rights = array_values( array_unique( $rights ) );
1821
1822 // If BlockDisablesLogin is true, remove rights that anonymous
1823 // users don't have. This has to be done after the hooks so that
1824 // we know whether the user is exempt. (T129738)
1825 if (
1826 $userObj->isRegistered()
1827 && $this->options->get( MainConfigNames::BlockDisablesLogin )
1828 ) {
1829 // Stash the permissions as they are before triggering any block checks for BlockDisablesLogin
1830 // to avoid a potential infinite loop, since GetUserBlock handlers may themselves check
1831 // permissions on this user. (T384197)
1832 $this->usersRights[ $rightsCacheKey ] = $rights;
1833
1834 $isExempt = in_array( 'ipblock-exempt', $rights, true );
1835 if ( $this->blockManager->getBlock(
1836 $userObj,
1837 $isExempt ? null : $userObj->getRequest()
1838 ) ) {
1839 $anon = $this->userFactory->newAnonymous();
1840 $rights = array_intersect( $rights, $this->getUserPermissions( $anon ) );
1841 }
1842 }
1843
1844 $this->usersRights[ $rightsCacheKey ] = $rights;
1845 } else {
1846 $rights = $this->usersRights[ $rightsCacheKey ];
1847 }
1848 foreach ( $this->temporaryUserRights[ $user->getId() ] ?? [] as $overrides ) {
1849 $rights = array_values( array_unique( array_merge( $rights, $overrides ) ) );
1850 }
1851 return $rights;
1852 }
1853
1861 public function invalidateUsersRightsCache( $user = null ): void {
1862 if ( $user !== null ) {
1863 $rightsCacheKey = $this->getRightsCacheKey( $user, false );
1864 unset( $this->usersRights[ $rightsCacheKey ] );
1865 $rightsCacheKey = $this->getRightsCacheKey( $user, true );
1866 unset( $this->usersRights[ $rightsCacheKey ] );
1867 } else {
1868 $this->usersRights = [];
1869 }
1870 }
1871
1875 private function getRightsCacheKey( UserIdentity $user, bool $includePrivateInfo ): string {
1876 $key = $user->isRegistered() ? "u:{$user->getId()}" : "anon:{$user->getName()}";
1877 if ( $includePrivateInfo ) {
1878 $key .= ':private';
1879 }
1880 return $key;
1881 }
1882
1897 public function isEveryoneAllowed( $right ): bool {
1898 // Use the cached results, except in unit tests which rely on
1899 // being able change the permission mid-request
1900 if ( isset( $this->cachedRights[$right] ) ) {
1901 return $this->cachedRights[$right];
1902 }
1903
1904 if ( !isset( $this->options->get( MainConfigNames::GroupPermissions )['*'][$right] )
1905 || !$this->options->get( MainConfigNames::GroupPermissions )['*'][$right]
1906 ) {
1907 $this->cachedRights[$right] = false;
1908 return false;
1909 }
1910
1911 // If it's revoked anywhere, then everyone doesn't have it
1912 foreach ( $this->options->get( MainConfigNames::RevokePermissions ) as $rights ) {
1913 if ( isset( $rights[$right] ) && $rights[$right] ) {
1914 $this->cachedRights[$right] = false;
1915 return false;
1916 }
1917 }
1918
1919 // Remove any rights that aren't allowed to the global-session user,
1920 // unless there are no sessions for this endpoint.
1921 if ( !defined( 'MW_NO_SESSION' ) ) {
1922 // XXX: think what could be done with the below
1923 $allowedRights = RequestContext::getMain()->getRequest()->getSession()->getAllowedUserRights();
1924 if ( $allowedRights !== null && !in_array( $right, $allowedRights, true ) ) {
1925 $this->cachedRights[$right] = false;
1926 return false;
1927 }
1928 }
1929
1930 // Allow extensions to say false
1931 if ( !$this->hookRunner->onUserIsEveryoneAllowed( $right ) ) {
1932 $this->cachedRights[$right] = false;
1933 return false;
1934 }
1935
1936 $this->cachedRights[$right] = true;
1937 return true;
1938 }
1939
1949 public function getAllPermissions(): array {
1950 if ( $this->allRights === null ) {
1951 if ( count( $this->options->get( MainConfigNames::AvailableRights ) ) ) {
1952 $this->allRights = array_unique( array_merge(
1953 self::CORE_RIGHTS,
1954 $this->options->get( MainConfigNames::AvailableRights )
1955 ) );
1956 } else {
1957 $this->allRights = self::CORE_RIGHTS;
1958 }
1959 $this->hookRunner->onUserGetAllRights( $this->allRights );
1960 }
1961 return $this->allRights;
1962 }
1963
1975 public function getImplicitRights(): array {
1976 if ( $this->implicitRights === null ) {
1977 $rights = array_unique( array_merge(
1978 self::CORE_IMPLICIT_RIGHTS,
1979 $this->options->get( MainConfigNames::ImplicitRights )
1980 ) );
1981
1982 $this->implicitRights = array_diff( $rights, $this->getAllPermissions() );
1983 }
1984 return $this->implicitRights;
1985 }
1986
1994 private function isNamespaceProtected( $index, UserIdentity $user ): bool {
1995 $namespaceProtection = $this->options->get( MainConfigNames::NamespaceProtection );
1996 if ( isset( $namespaceProtection[$index] ) ) {
1997 return !$this->userHasAllRights( $user, ...(array)$namespaceProtection[$index] );
1998 }
1999 return false;
2000 }
2001
2010 public function getNamespaceRestrictionLevels( $index, ?UserIdentity $user = null ): array {
2011 if ( !isset( $this->options->get( MainConfigNames::NamespaceProtection )[$index] ) ) {
2012 // All levels are valid if there's no namespace restriction.
2013 // But still filter by user, if necessary
2014 $levels = $this->options->get( MainConfigNames::RestrictionLevels );
2015 if ( $user ) {
2016 $levels = array_values( array_filter( $levels, function ( $level ) use ( $user ) {
2017 $right = $level;
2018 if ( $right === 'sysop' ) {
2019 $right = 'editprotected'; // BC
2020 }
2021 if ( $right === 'autoconfirmed' ) {
2022 $right = 'editsemiprotected'; // BC
2023 }
2024 return $this->userHasRight( $user, $right );
2025 } ) );
2026 }
2027 return $levels;
2028 }
2029
2030 // $wgNamespaceProtection can require one or more rights to edit the namespace, which
2031 // may be satisfied by membership in multiple groups each giving a subset of those rights.
2032 // A restriction level is redundant if, for any one of the namespace rights, all groups
2033 // giving that right also give the restriction level's right. Or, conversely, a
2034 // restriction level is not redundant if, for every namespace right, there's at least one
2035 // group giving that right without the restriction level's right.
2036 //
2037 // First, for each right, get a list of groups with that right.
2038 $namespaceRightGroups = [];
2039 foreach ( (array)$this->options->get( MainConfigNames::NamespaceProtection )[$index] as $right ) {
2040 if ( $right === 'sysop' ) {
2041 $right = 'editprotected'; // BC
2042 }
2043 if ( $right === 'autoconfirmed' ) {
2044 $right = 'editsemiprotected'; // BC
2045 }
2046 if ( $right != '' ) {
2047 $namespaceRightGroups[$right] = $this->groupPermissionsLookup->getGroupsWithPermission( $right );
2048 }
2049 }
2050
2051 // Now, go through the protection levels one by one.
2052 $usableLevels = [ '' ];
2053 foreach ( $this->options->get( MainConfigNames::RestrictionLevels ) as $level ) {
2054 $right = $level;
2055 if ( $right === 'sysop' ) {
2056 $right = 'editprotected'; // BC
2057 }
2058 if ( $right === 'autoconfirmed' ) {
2059 $right = 'editsemiprotected'; // BC
2060 }
2061
2062 if ( $right != '' &&
2063 !isset( $namespaceRightGroups[$right] ) &&
2064 ( !$user || $this->userHasRight( $user, $right ) )
2065 ) {
2066 // Do any of the namespace rights imply the restriction right? (see explanation above)
2067 foreach ( $namespaceRightGroups as $groups ) {
2068 if ( !array_diff( $groups, $this->groupPermissionsLookup->getGroupsWithPermission( $right ) ) ) {
2069 // Yes, this one does.
2070 continue 2;
2071 }
2072 }
2073 // No, keep the restriction level
2074 $usableLevels[] = $level;
2075 }
2076 }
2077
2078 return $usableLevels;
2079 }
2080
2097 #[\NoDiscard]
2098 public function addTemporaryUserRights( UserIdentity $user, $rights ): ScopedCallback {
2099 $userId = $user->getId();
2100 $nextKey = count( $this->temporaryUserRights[$userId] ?? [] );
2101 $this->temporaryUserRights[$userId][$nextKey] = (array)$rights;
2102 return new ScopedCallback( function () use ( $userId, $nextKey ) {
2103 unset( $this->temporaryUserRights[$userId][$nextKey] );
2104 } );
2105 }
2106
2115 public function overrideUserRightsForTesting( $user, $rights = [] ) {
2116 if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
2117 throw new LogicException( __METHOD__ . ' can not be called outside of tests' );
2118 }
2119 $this->usersRights[ $this->getRightsCacheKey( $user, false ) ] =
2120 is_array( $rights ) ? $rights : [ $rights ];
2121 $this->usersRights[ $this->getRightsCacheKey( $user, true ) ] =
2122 is_array( $rights ) ? $rights : [ $rights ];
2123 }
2124
2125}
const NS_USER
Definition Defines.php:53
const NS_FILE
Definition Defines.php:57
const NS_MAIN
Definition Defines.php:51
const NS_MEDIAWIKI
Definition Defines.php:59
const NS_SPECIAL
Definition Defines.php:40
const NS_CATEGORY
Definition Defines.php:65
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
if(!defined('MW_SETUP_CALLBACK'))
Definition WebStart.php:72
A service class for getting formatted information about a block.
A service class for checking blocks.
A class for passing options to services.
This class provides an implementation of the core hook interfaces, forwarding hook calls to HookConta...
A class containing constants representing the names of configuration variables.
const AvailableRights
Name constant for the AvailableRights setting, for use with Config\get().
const ReauthenticateForActions
Name constant for the ReauthenticateForActions setting, for use with Config\get().
const NamespaceProtection
Name constant for the NamespaceProtection setting, for use with Config\get().
const RevokePermissions
Name constant for the RevokePermissions setting, for use with Config\get().
const WhitelistRead
Name constant for the WhitelistRead setting, for use with Config\get().
const BlockDisablesLogin
Name constant for the BlockDisablesLogin setting, for use with Config\get().
const DeleteRevisionsLimit
Name constant for the DeleteRevisionsLimit setting, for use with Config\get().
const EmailConfirmToEdit
Name constant for the EmailConfirmToEdit setting, for use with Config\get().
const RateLimits
Name constant for the RateLimits setting, for use with Config\get().
const GroupPermissions
Name constant for the GroupPermissions setting, for use with Config\get().
const RestrictionLevels
Name constant for the RestrictionLevels setting, for use with Config\get().
const RestrictUserPageEditing
Name constant for the RestrictUserPageEditing setting, for use with Config\get().
const WhitelistReadRegexp
Name constant for the WhitelistReadRegexp setting, for use with Config\get().
const ImplicitRights
Name constant for the ImplicitRights setting, for use with Config\get().
static getInstance()
Returns the global default instance of the top level service locator.
static listParam(array $list, $type=ListType::AND)
Definition Message.php:1355
A service class for looking up permissions bestowed to groups, groups bestowed with permissions,...
A service class for checking permissions To obtain an instance, use MediaWikiServices\getInstance()->...
getPermissionStatus( $action, User $user, LinkTarget $page, $rigor=self::RIGOR_SECURE, $short=false)
Can $user perform $action on a page?
userCan( $action, User $user, LinkTarget $page, $rigor=self::RIGOR_FULL)
Can $user perform $action on a page?
__construct(private ServiceOptions $options, private SpecialPageFactory $specialPageFactory, private NamespaceInfo $nsInfo, private GroupPermissionsLookup $groupPermissionsLookup, private UserGroupManager $userGroupManager, private BlockManager $blockManager, private BlockErrorFormatter $blockErrorFormatter, HookContainer $hookContainer, private UserIdentityLookup $userIdentityLookup, private RedirectLookup $redirectLookup, private RestrictionStore $restrictionStore, private TitleFormatter $titleFormatter, private TempUserConfig $tempUserConfig, private UserFactory $userFactory, private ActionFactory $actionFactory)
getNamespaceRestrictionLevels( $index, ?UserIdentity $user=null)
Determine which restriction levels it makes sense to use in a namespace, optionally filtered by a use...
quickUserCan( $action, User $user, LinkTarget $page)
A convenience method for calling PermissionManager\userCan with PermissionManager\RIGOR_QUICK.
isEveryoneAllowed( $right)
Check if all users may be assumed to have the given permission.
getPermissionErrors( $action, User $user, LinkTarget $page, $rigor=self::RIGOR_SECURE, $ignoreErrors=[])
Can $user perform $action on a page?
invalidateUsersRightsCache( $user=null)
Clear the in-process permission cache for one or all users.
overrideUserRightsForTesting( $user, $rights=[])
Override the user permissions cache.
addTemporaryUserRights(UserIdentity $user, $rights)
Add temporary user rights, only valid for the current function scope.
userHasRight(UserIdentity $user, $action='', bool $recordSecuritySensitiveOperation=false)
Whether the user is generally allowed to perform the given action.
throwPermissionErrors( $action, User $user, LinkTarget $page, $rigor=self::RIGOR_SECURE, $ignoreErrors=[])
Like getPermissionErrors, but immediately throw if there are any errors.
getApplicableBlock(string $action, User $user, string $rigor, $page, ?WebRequest $request)
Return the Block object applicable for the given permission check, if any.
getImplicitRights()
Get a list of implicit rights.
userHasAnyRight(UserIdentity $user,... $actions)
Whether the user is generally allowed to perform at least one of the actions.
getAllPermissions()
Get a list of all permissions that can be managed through group permissions.
getUserPermissions(UserIdentity $user, bool $includePrivateInfo=true)
Get the permissions this user has.
newFatalPermissionDeniedStatus( $permission, IContextSource $context)
Factory function for fatal permission-denied errors.
getUserRightStatus(UserIdentity $user, string $right, string $rigor=self::RIGOR_SECURE, bool $detailedPermissionErrors=true, bool $recordSecuritySensitiveOperation=false)
Check whether the user is generally allowed to perform the given action.
isBlockedFrom(User $user, $page, $fromReplica=false)
Check if user is blocked from editing a particular article.
userHasAllRights(UserIdentity $user,... $actions)
Whether the user is allowed to perform all of the given actions.
A StatusValue for permission errors.
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
Factory for handling the special page list and generating SpecialPage objects.
static getSafeTitleFor( $name, $subpage=false)
Get a localised Title object for a page name with a possibly unvalidated subpage.
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
A title formatter service for MediaWiki.
Create User objects.
Manage user group memberships.
User class for the MediaWiki software.
Definition User.php:129
isRegistered()
Get whether the user is registered.
Definition User.php:2077
static newFatal( $message,... $parameters)
Factory function for fatal errors.
return[ 'config-schema-inverse'=>['default'=>['ConfigRegistry'=>['main'=> 'MediaWiki\\Config\\GlobalVarConfig::newInstance',], 'Sitename'=> 'MediaWiki', 'Server'=> false, 'CanonicalServer'=> false, 'ServerName'=> false, 'AssumeProxiesUseDefaultProtocolPorts'=> true, 'HttpsPort'=> 443, 'ForceHTTPS'=> false, 'ScriptPath'=> '/wiki', 'UsePathInfo'=> null, 'Script'=> false, 'LoadScript'=> false, 'RestPath'=> false, 'StylePath'=> false, 'LocalStylePath'=> false, 'ExtensionAssetsPath'=> false, 'ExtensionDirectory'=> null, 'StyleDirectory'=> null, 'ArticlePath'=> false, 'UploadPath'=> false, 'ImgAuthPath'=> false, 'ThumbPath'=> false, 'UploadDirectory'=> false, 'FileCacheDirectory'=> false, 'Logo'=> false, 'Logos'=> false, 'Favicon'=> '/favicon.ico', 'AppleTouchIcon'=> false, 'ReferrerPolicy'=> false, 'TmpDirectory'=> false, 'UploadBaseUrl'=> '', 'UploadStashScalerBaseUrl'=> false, 'ActionPaths'=>[], 'MainPageIsDomainRoot'=> false, 'EnableUploads'=> false, 'UploadStashMaxAge'=> 21600, 'EnableAsyncUploads'=> false, 'EnableAsyncUploadsByURL'=> false, 'EnableChunkedUploads'=> false, 'UploadMaintenance'=> false, 'IllegalFileChars'=> ':\\/\\\\', 'DeletedDirectory'=> false, 'ImgAuthDetails'=> false, 'ImgAuthUrlPathMap'=>[], 'LocalFileRepo'=>['class'=> 'MediaWiki\\FileRepo\\LocalRepo', 'name'=> 'local', 'directory'=> null, 'scriptDirUrl'=> null, 'favicon'=> null, 'url'=> null, 'hashLevels'=> null, 'thumbScriptUrl'=> null, 'transformVia404'=> null, 'deletedDir'=> null, 'deletedHashLevels'=> null, 'updateCompatibleMetadata'=> null, 'reserializeMetadata'=> null,], 'ForeignFileRepos'=>[], 'UseInstantCommons'=> false, 'UseSharedUploads'=> false, 'SharedUploadDirectory'=> null, 'SharedUploadPath'=> null, 'HashedSharedUploadDirectory'=> true, 'RepositoryBaseUrl'=> 'https:'FetchCommonsDescriptions'=> false, 'SharedUploadDBname'=> false, 'SharedUploadDBprefix'=> '', 'SharedUploadDBschema'=> null, 'CacheSharedUploads'=> true, 'ForeignUploadTargets'=>['local',], 'UploadDialog'=>['fields'=>['description'=> true, 'date'=> false, 'categories'=> false,], 'licensemessages'=>['local'=> 'generic-local', 'foreign'=> 'generic-foreign',], 'comment'=>['local'=> '', 'foreign'=> '',], 'format'=>['filepage'=> ' $DESCRIPTION', 'description'=> ' $TEXT', 'ownwork'=> '', 'license'=> '', 'uncategorized'=> '',],], 'FileBackends'=>[], 'LockManagers'=>[], 'DefaultLockManager'=> null, 'ShowEXIF'=> null, 'UpdateCompatibleMetadata'=> false, 'AllowCopyUploads'=> false, 'CopyUploadsDomains'=>[], 'CopyUploadsFromSpecialUpload'=> false, 'CopyUploadProxy'=> false, 'CopyUploadTimeout'=> false, 'CopyUploadAllowOnWikiDomainConfig'=> false, 'MaxUploadSize'=> 104857600, 'MinUploadChunkSize'=> 1024, 'UploadNavigationUrl'=> false, 'UploadMissingFileUrl'=> false, 'ThumbnailScriptPath'=> false, 'SharedThumbnailScriptPath'=> false, 'HashedUploadDirectory'=> true, 'CSPUploadEntryPoint'=> true, 'FileExtensions'=>['png', 'gif', 'jpg', 'jpeg', 'webp',], 'ProhibitedFileExtensions'=>['html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht', 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar', 'shtml', 'jhtml', 'pl', 'py', 'cgi', 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl', 'xml',], 'MimeTypeExclusions'=>['text/html', 'application/javascript', 'text/javascript', 'text/x-javascript', 'application/x-shellscript', 'application/x-php', 'text/x-php', 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh', 'text/scriptlet', 'application/x-msdownload', 'application/x-msmetafile', 'application/java', 'application/xml', 'text/xml',], 'CheckFileExtensions'=> true, 'StrictFileExtensions'=> true, 'DisableUploadScriptChecks'=> false, 'UploadSizeWarning'=> false, 'TrustedMediaFormats'=>['BITMAP', 'AUDIO', 'VIDEO', 'image/svg+xml', 'application/pdf',], 'MediaHandlers'=>[], 'NativeImageLazyLoading'=> true, 'ParserTestMediaHandlers'=>['image/jpeg'=> 'MockBitmapHandler', 'image/png'=> 'MockBitmapHandler', 'image/gif'=> 'MockBitmapHandler', 'image/tiff'=> 'MockBitmapHandler', 'image/webp'=> 'MockBitmapHandler', 'image/x-ms-bmp'=> 'MockBitmapHandler', 'image/x-bmp'=> 'MockBitmapHandler', 'image/x-xcf'=> 'MockBitmapHandler', 'image/svg+xml'=> 'MockSvgHandler', 'image/vnd.djvu'=> 'MockDjVuHandler',], 'UseImageResize'=> true, 'UseImageMagick'=> false, 'ImageMagickConvertCommand'=> '/usr/bin/convert', 'MaxInterlacingAreas'=>[], 'SharpenParameter'=> '0x0.4', 'SharpenReductionThreshold'=> 0.85, 'ImageMagickTempDir'=> false, 'CustomConvertCommand'=> false, 'JpegTran'=> '/usr/bin/jpegtran', 'JpegPixelFormat'=> 'yuv420', 'JpegQuality'=> 80, 'Exiv2Command'=> '/usr/bin/exiv2', 'Exiftool'=> '/usr/bin/exiftool', 'SVGConverters'=>['ImageMagick'=> ' $path/convert -background "#ffffff00" -thumbnail $widthx$height\\! $input PNG:$output', 'inkscape'=> ' $path/inkscape -w $width -o $output $input', 'batik'=> 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input', 'rsvg'=> ' $path/rsvg-convert -w $width -h $height -l $lang -o $output $input', 'ImagickExt'=>['SvgHandler::rasterizeImagickExt',],], 'SVGConverter'=> 'ImageMagick', 'SVGConverterPath'=> '', 'SVGMaxSize'=> 5120, 'SVGMetadataCutoff'=> 5242880, 'SVGNativeRendering'=> true, 'SVGNativeRenderingSizeLimit'=> 51200, 'MediaInTargetLanguage'=> true, 'MaxImageArea'=> 12500000, 'MaxAnimatedGifArea'=> 12500000, 'MaxAnimatedWebPArea'=> 12500000, 'TiffThumbnailType'=>[], 'ThumbnailEpoch'=> '20030516000000', 'AttemptFailureEpoch'=> 1, 'IgnoreImageErrors'=> false, 'GenerateThumbnailOnParse'=> true, 'ShowArchiveThumbnails'=> true, 'EnableAutoRotation'=> null, 'Antivirus'=> null, 'AntivirusSetup'=>['clamav'=>['command'=> 'clamscan --no-summary ', 'codemap'=>[0=> 0, 1=> 1, 52=> -1, ' *'=> false,], 'messagepattern'=> '/.*?:(.*)/sim',],], 'AntivirusRequired'=> true, 'VerifyMimeType'=> true, 'MimeTypeFile'=> 'internal', 'MimeInfoFile'=> 'internal', 'MimeDetectorCommand'=> null, 'TrivialMimeDetection'=> false, 'XMLMimeTypes'=>['http:'svg'=> 'image/svg+xml', 'http:'http:'html'=> 'text/html',], 'ImageLimits'=>[[320, 240,], [640, 480,], [800, 600,], [1024, 768,], [1280, 1024,], [2560, 2048,],], 'ThumbLimits'=>[120, 150, 180, 200, 220, 250, 300, 400,], 'ThumbnailNamespaces'=>[6,], 'ThumbnailSteps'=> null, 'ThumbnailBuckets'=> null, 'ThumbnailMinimumBucketDistance'=> 50, 'UploadThumbnailRenderMap'=>[], 'UploadThumbnailRenderMethod'=> 'jobqueue', 'UploadThumbnailRenderHttpCustomHost'=> false, 'UploadThumbnailRenderHttpCustomDomain'=> false, 'UseTinyRGBForJPGThumbnails'=> false, 'GalleryOptions'=>[], 'ThumbUpright'=> 0.75, 'DirectoryMode'=> 511, 'ResponsiveImages'=> true, 'ImagePreconnect'=> false, 'TrackMediaRequestProvenance'=> false, 'DjvuUseBoxedCommand'=> false, 'DjvuDump'=> null, 'DjvuRenderer'=> null, 'DjvuTxt'=> null, 'DjvuPostProcessor'=> 'pnmtojpeg', 'DjvuOutputExtension'=> 'jpg', 'EmergencyContact'=> false, 'PasswordSender'=> false, 'NoReplyAddress'=> false, 'EnableEmail'=> true, 'EnableUserEmail'=> true, 'UserEmailUseReplyTo'=> true, 'PasswordReminderResendTime'=> 24, 'NewPasswordExpiry'=> 604800, 'UserEmailConfirmationTokenExpiry'=> 604800, 'PasswordExpirationDays'=> false, 'PasswordExpireGrace'=> 604800, 'SMTP'=> false, 'AdditionalMailParams'=> null, 'AllowHTMLEmail'=> false, 'EnotifFromEditor'=> false, 'EmailAuthentication'=> true, 'EmailConfirmationBanner'=> false, 'EnotifWatchlist'=> false, 'EnotifUserTalk'=> false, 'EnotifRevealEditorAddress'=> false, 'EnotifMinorEdits'=> true, 'EnotifUseRealName'=> false, 'UsersNotifiedOnAllChanges'=>[], 'DBname'=> 'my_wiki', 'DBmwschema'=> null, 'DBprefix'=> '', 'DBserver'=> 'localhost', 'DBport'=> 5432, 'DBuser'=> 'wikiuser', 'DBpassword'=> '', 'DBtype'=> 'mysql', 'DBssl'=> false, 'DBcompress'=> false, 'DBStrictWarnings'=> false, 'DBadminuser'=> null, 'DBadminpassword'=> null, 'SearchType'=> null, 'SearchTypeAlternatives'=> null, 'DBTableOptions'=> 'ENGINE=InnoDB, DEFAULT CHARSET=binary', 'SQLMode'=> '', 'SQLiteDataDir'=> '', 'SharedDB'=> null, 'SharedPrefix'=> false, 'SharedTables'=>['user', 'user_properties', 'user_autocreate_serial',], 'SharedSchema'=> false, 'DBservers'=> false, 'LBFactoryConf'=>['class'=> 'Wikimedia\\Rdbms\\LBFactorySimple',], 'DataCenterUpdateStickTTL'=> 10, 'DBerrorLog'=> false, 'DBerrorLogTZ'=> false, 'LocalDatabases'=>[], 'DatabaseReplicaLagWarning'=> 10, 'DatabaseReplicaLagCritical'=> 30, 'MaxExecutionTimeForExpensiveQueries'=> 0, 'VirtualDomainsMapping'=>[], 'RemoteVirtualDomainsMapping'=>[], 'FileSchemaMigrationStage'=> 3, 'ExternalLinksDomainGaps'=>[], 'ContentHandlers'=>['wikitext'=>['class'=> 'MediaWiki\\Content\\WikitextContentHandler', 'services'=>['TitleFactory', 'ParserFactory', 'GlobalIdGenerator', 'LanguageNameUtils', 'LinkRenderer', 'MagicWordFactory', 'ParsoidParserFactory',],], 'javascript'=>['class'=> 'MediaWiki\\Content\\JavaScriptContentHandler', 'services'=>['MainConfig', 'ParserFactory', 'UserOptionsLookup', 'CodeHighlighter',],], 'json'=>['class'=> 'MediaWiki\\Content\\JsonContentHandler', 'services'=>['ParsoidParserFactory', 'TitleFactory',],], 'css'=>['class'=> 'MediaWiki\\Content\\CssContentHandler', 'services'=>['MainConfig', 'ParserFactory', 'UserOptionsLookup', 'CodeHighlighter',],], 'vue'=>['class'=> 'MediaWiki\\Content\\VueContentHandler', 'services'=>['MainConfig', 'ParserFactory', 'CodeHighlighter',],], 'text'=> 'MediaWiki\\Content\\TextContentHandler', 'unknown'=> 'MediaWiki\\Content\\FallbackContentHandler',], 'NamespaceContentModels'=>[], 'TextModelsToParse'=>['wikitext', 'javascript', 'css',], 'CompressRevisions'=> false, 'ExternalStores'=>[], 'ExternalServers'=>[], 'DefaultExternalStore'=> false, 'RevisionCacheExpiry'=> 604800, 'PageLanguageUseDB'=> false, 'DiffEngine'=> null, 'ExternalDiffEngine'=> false, 'Wikidiff2Options'=>[], 'RequestTimeLimit'=> null, 'TransactionalTimeLimit'=> 120, 'CriticalSectionTimeLimit'=> 180.0, 'MiserMode'=> false, 'DisableQueryPages'=> false, 'QueryCacheLimit'=> 1000, 'WantedPagesThreshold'=> 1, 'AllowSlowParserFunctions'=> false, 'AllowSchemaUpdates'=> true, 'MaxArticleSize'=> 2048, 'MemoryLimit'=> '50M', 'PoolCounterConf'=> null, 'PoolCountClientConf'=>['servers'=>['127.0.0.1',], 'timeout'=> 0.1,], 'MaxUserDBWriteDuration'=> false, 'MaxJobDBWriteDuration'=> false, 'LinkHolderBatchSize'=> 1000, 'MaximumMovedPages'=> 100, 'ForceDeferredUpdatesPreSend'=> false, 'MultiShardSiteStats'=> false, 'CacheDirectory'=> false, 'MainCacheType'=> 0, 'MessageCacheType'=> -1, 'ParserCacheType'=> -1, 'SessionCacheType'=> -1, 'AnonSessionCacheType'=> false, 'LanguageConverterCacheType'=> -1, 'ObjectCaches'=>[0=>['class'=> 'Wikimedia\\ObjectCache\\EmptyBagOStuff', 'reportDupes'=> false,], 1=>['class'=> 'MediaWiki\\ObjectCache\\SqlBagOStuff', 'loggroup'=> 'SQLBagOStuff',], 'memcached-php'=>['class'=> 'Wikimedia\\ObjectCache\\MemcachedPhpBagOStuff', 'loggroup'=> 'memcached',], 'memcached-pecl'=>['class'=> 'Wikimedia\\ObjectCache\\MemcachedPeclBagOStuff', 'loggroup'=> 'memcached',], 'hash'=>['class'=> 'Wikimedia\\ObjectCache\\HashBagOStuff', 'reportDupes'=> false,], 'apc'=>['class'=> 'Wikimedia\\ObjectCache\\APCUBagOStuff', 'reportDupes'=> false,], 'apcu'=>['class'=> 'Wikimedia\\ObjectCache\\APCUBagOStuff', 'reportDupes'=> false,],], 'WANObjectCache'=>[], 'MicroStashType'=> -1, 'MainStash'=> 1, 'ParsoidCacheConfig'=>['StashType'=> null, 'StashDuration'=> 86400,], 'ParsoidSelectiveUpdateSampleRate'=> 0, 'SplitParsoidParserCache'=> false, 'ParserCacheFilterConfig'=>['pcache'=>['default'=>['minCpuTime'=> 0,],], 'postproc-pcache'=>['default'=>['minCpuTime'=> 9223372036854775807,],], 'parsoid-pcache'=>['default'=>['minCpuTime'=> 0,],], 'postproc-parsoid-pcache'=>['default'=>['minCpuTime'=> 0,],],], 'ChronologyProtectorSecret'=> '', 'ParserCacheExpireTime'=> 86400, 'ParserCacheAsyncExpireTime'=> 60, 'ParserCacheAsyncRefreshJobs'=> true, 'OldRevisionParserCacheExpireTime'=> 3600, 'ObjectCacheSessionExpiry'=> 3600, 'SuspiciousIpExpiry'=> false, 'SessionPbkdf2Iterations'=> 10001, 'UseSessionCookieJwt'=> false, 'JwtSessionCookieIssuer'=> null, 'MemCachedServers'=>['127.0.0.1:11211',], 'MemCachedPersistent'=> false, 'MemCachedTimeout'=> 500000, 'UseLocalMessageCache'=> false, 'AdaptiveMessageCache'=> false, 'LocalisationCacheConf'=>['class'=> 'MediaWiki\\Language\\LocalisationCache', 'store'=> 'detect', 'storeClass'=> false, 'storeDirectory'=> false, 'storeServer'=>[], 'forceRecache'=> false, 'manualRecache'=> false,], 'CachePages'=> true, 'CacheEpoch'=> '20030516000000', 'GitInfoCacheDirectory'=> false, 'UseFileCache'=> false, 'FileCacheDepth'=> 2, 'RenderHashAppend'=> '', 'EnableSidebarCache'=> false, 'SidebarCacheExpiry'=> 86400, 'UseGzip'=> false, 'InvalidateCacheOnLocalSettingsChange'=> true, 'ExtensionInfoMTime'=> false, 'EnableRemoteBagOStuffTests'=> false, 'UseCdn'=> false, 'VaryOnXFP'=> false, 'InternalServer'=> false, 'CdnMaxAge'=> 18000, 'CdnMaxageLagged'=> 30, 'CdnMaxageStale'=> 10, 'CdnReboundPurgeDelay'=> 0, 'CdnMaxageSubstitute'=> 60, 'CdnServers'=>[], 'CdnServersNoPurge'=>[], 'HTCPRouting'=>[], 'HTCPMulticastTTL'=> 1, 'UsePrivateIPs'=> false, 'CdnMatchParameterOrder'=> true, 'LanguageCode'=> 'en', 'GrammarForms'=>[], 'InterwikiMagic'=> true, 'HideInterlanguageLinks'=> false, 'ExtraInterlanguageLinkPrefixes'=>[], 'InterlanguageLinkCodeMap'=>[], 'ExtraLanguageNames'=>[], 'ExtraLanguageCodes'=>['bh'=> 'bho', 'no'=> 'nb', 'simple'=> 'en',], 'DummyLanguageCodes'=>[], 'AllUnicodeFixes'=> false, 'LegacyEncoding'=> false, 'AmericanDates'=> false, 'TranslateNumerals'=> true, 'UseDatabaseMessages'=> true, 'MaxMsgCacheEntrySize'=> 10000, 'DisableLangConversion'=> false, 'DisableTitleConversion'=> false, 'DefaultLanguageVariant'=> false, 'UsePigLatinVariant'=> false, 'DisabledVariants'=>[], 'VariantArticlePath'=> false, 'UseXssLanguage'=> false, 'LoginLanguageSelector'=> false, 'ForceUIMsgAsContentMsg'=>[], 'RawHtmlMessages'=>[], 'Localtimezone'=> null, 'LocalTZoffset'=> null, 'OverrideUcfirstCharacters'=>[], 'MimeType'=> 'text/html', 'Html5Version'=> null, 'EditSubmitButtonLabelPublish'=> false, 'XhtmlNamespaces'=>[], 'SiteNotice'=> '', 'BrowserFormatDetection'=> 'telephone=no', 'SkinMetaTags'=>[], 'DefaultSkin'=> 'vector-2022', 'FallbackSkin'=> 'fallback', 'SkipSkins'=>[], 'DisableOutputCompression'=> false, 'FragmentMode'=>['html5', 'legacy',], 'ExternalInterwikiFragmentMode'=> 'legacy', 'FooterIcons'=>['copyright'=>['copyright'=>[],], 'poweredby'=>['mediawiki'=>['src'=> null, 'url'=> 'https:'alt'=> 'Powered by MediaWiki', 'lang'=> 'en',],],], 'EnableSectionShare'=> false, 'PageShareSkinsEnabled'=>[], 'UseCombinedLoginLink'=> false, 'Edititis'=> false, 'Send404Code'=> true, 'ShowRollbackEditCount'=> 10, 'EnableCanonicalServerLink'=> false, 'InterwikiLogoOverride'=>[], 'ResourceModules'=>[], 'ResourceModuleSkinStyles'=>[], 'ResourceLoaderSources'=>[], 'ResourceBasePath'=> null, 'ResourceLoaderMaxage'=>[], 'ResourceLoaderDebug'=> false, 'ResourceLoaderMaxQueryLength'=> false, 'ResourceLoaderValidateJS'=> true, 'ResourceLoaderEnableJSProfiler'=> false, 'ResourceLoaderStorageEnabled'=> true, 'ResourceLoaderStorageVersion'=> 1, 'ResourceLoaderEnableSourceMapLinks'=> true, 'AllowSiteCSSOnRestrictedPages'=> false, 'VueDevelopmentMode'=> false, 'CodexDevelopmentDir'=> null, 'MetaNamespace'=> false, 'MetaNamespaceTalk'=> false, 'CanonicalNamespaceNames'=>[-2=> 'Media', -1=> 'Special', 0=> '', 1=> 'Talk', 2=> 'User', 3=> 'User_talk', 4=> 'Project', 5=> 'Project_talk', 6=> 'File', 7=> 'File_talk', 8=> 'MediaWiki', 9=> 'MediaWiki_talk', 10=> 'Template', 11=> 'Template_talk', 12=> 'Help', 13=> 'Help_talk', 14=> 'Category', 15=> 'Category_talk',], 'ExtraNamespaces'=>[], 'ExtraGenderNamespaces'=>[], 'NamespaceAliases'=>[], 'LegalTitleChars'=> ' %!"$&\'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+', 'CapitalLinks' => true, 'CapitalLinkOverrides' => [ ], 'NamespacesWithSubpages' => [ 1 => true, 2 => true, 3 => true, 4 => true, 5 => true, 7 => true, 8 => true, 9 => true, 10 => true, 11 => true, 12 => true, 13 => true, 15 => true, ], 'NamespacesWithoutAutoSummaries' => [ ], 'ContentNamespaces' => [ 0, ], 'ShortPagesNamespaceExclusions' => [ ], 'ExtraSignatureNamespaces' => [ ], 'InvalidRedirectTargets' => [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect', 'Mylog', ], 'DisableHardRedirects' => false, 'FixDoubleRedirects' => false, 'LocalInterwikis' => [ ], 'InterwikiExpiry' => 10800, 'InterwikiCache' => false, 'InterwikiScopes' => 3, 'InterwikiFallbackSite' => 'wiki', 'RedirectSources' => false, 'SiteTypes' => [ 'mediawiki' => 'MediaWiki\\Site\\MediaWikiSite', ], 'MaxTocLevel' => 999, 'MaxPPNodeCount' => 1000000, 'MaxTemplateDepth' => 100, 'MaxPPExpandDepth' => 100, 'UrlProtocols' => [ 'bitcoin:', 'ftp: 'ftps: 'geo:', 'git: 'gopher: 'http: 'https: 'irc: 'ircs: 'magnet:', 'mailto:', 'matrix:', 'mms: 'news:', 'nntp: 'redis: 'sftp: 'sip:', 'sips:', 'sms:', 'ssh: 'svn: 'tel:', 'telnet: 'urn:', 'wikipedia: 'worldwind: 'xmpp:', ' ], 'CleanSignatures' => true, 'AllowExternalImages' => false, 'AllowExternalImagesFrom' => '', 'EnableImageWhitelist' => false, 'TidyConfig' => [ ], 'ParsoidSettings' => [ 'useSelser' => true, ], 'ParsoidExperimentalParserFunctionOutput' => false, 'RawHtml' => false, 'ExternalLinkTarget' => false, 'NoFollowLinks' => true, 'NoFollowNsExceptions' => [ ], 'NoFollowDomainExceptions' => [ 'mediawiki.org', ], 'RegisterInternalExternals' => false, 'ExternalLinksIgnoreDomains' => [ ], 'AllowDisplayTitle' => true, 'RestrictDisplayTitle' => true, 'ExpensiveParserFunctionLimit' => 100, 'PreprocessorCacheThreshold' => 1000, 'EnableScaryTranscluding' => false, 'TranscludeCacheExpiry' => 3600, 'EnableMagicLinks' => [ 'ISBN' => false, 'PMID' => false, 'RFC' => false, ], 'ParserEnableUserLanguage' => false, 'ArticleCountMethod' => 'link', 'ActiveUserDays' => 30, 'LearnerEdits' => 10, 'LearnerMemberSince' => 4, 'ExperiencedUserEdits' => 500, 'ExperiencedUserMemberSince' => 30, 'ManualRevertSearchRadius' => 15, 'RevertedTagMaxDepth' => 15, 'CentralIdLookupProviders' => [ 'local' => [ 'class' => 'MediaWiki\\User\\CentralId\\LocalIdLookup', 'services' => [ 'MainConfig', 'DBLoadBalancerFactory', 'HideUserUtils', ], ], ], 'CentralIdLookupProvider' => 'local', 'UserRegistrationProviders' => [ 'local' => [ 'class' => 'MediaWiki\\User\\Registration\\LocalUserRegistrationProvider', 'services' => [ 'ConnectionProvider', ], ], ], 'PasswordPolicy' => [ 'policies' => [ 'bureaucrat' => [ 'MinimalPasswordLength' => 10, 'MinimumPasswordLengthToLogin' => 1, ], 'sysop' => [ 'MinimalPasswordLength' => 10, 'MinimumPasswordLengthToLogin' => 1, ], 'interface-admin' => [ 'MinimalPasswordLength' => 10, 'MinimumPasswordLengthToLogin' => 1, ], 'bot' => [ 'MinimalPasswordLength' => 10, 'MinimumPasswordLengthToLogin' => 1, ], 'default' => [ 'MinimalPasswordLength' => [ 'value' => 8, 'suggestChangeOnLogin' => true, ], 'PasswordCannotBeSubstringInUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true, ], 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true, ], 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true, ], 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true, ], ], ], 'checks' => [ 'MinimalPasswordLength' => [ 'MediaWiki\\Password\\PasswordPolicyChecks', 'checkMinimalPasswordLength', ], 'MinimumPasswordLengthToLogin' => [ 'MediaWiki\\Password\\PasswordPolicyChecks', 'checkMinimumPasswordLengthToLogin', ], 'PasswordCannotBeSubstringInUsername' => [ 'MediaWiki\\Password\\PasswordPolicyChecks', 'checkPasswordCannotBeSubstringInUsername', ], 'PasswordCannotMatchDefaults' => [ 'MediaWiki\\Password\\PasswordPolicyChecks', 'checkPasswordCannotMatchDefaults', ], 'MaximalPasswordLength' => [ 'MediaWiki\\Password\\PasswordPolicyChecks', 'checkMaximalPasswordLength', ], 'PasswordNotInCommonList' => [ 'MediaWiki\\Password\\PasswordPolicyChecks', 'checkPasswordNotInCommonList', ], ], ], 'AuthManagerConfig' => null, 'AuthManagerAutoConfig' => [ 'preauth' => [ 'MediaWiki\\Auth\\ThrottlePreAuthenticationProvider' => [ 'class' => 'MediaWiki\\Auth\\ThrottlePreAuthenticationProvider', 'sort' => 0, ], 'MediaWiki\\Auth\\PreviouslyRenamedAccountPreAuthenticationProvider' => [ 'class' => 'MediaWiki\\Auth\\PreviouslyRenamedAccountPreAuthenticationProvider', 'services' => [ 'ConnectionProvider', 'UserFactory', ], 'sort' => 0, ], ], 'primaryauth' => [ 'MediaWiki\\Auth\\TemporaryPasswordPrimaryAuthenticationProvider' => [ 'class' => 'MediaWiki\\Auth\\TemporaryPasswordPrimaryAuthenticationProvider', 'services' => [ 'DBLoadBalancerFactory', 'UserOptionsLookup', ], 'args' => [ [ 'authoritative' => false, ], ], 'sort' => 0, ], 'MediaWiki\\Auth\\LocalPasswordPrimaryAuthenticationProvider' => [ 'class' => 'MediaWiki\\Auth\\LocalPasswordPrimaryAuthenticationProvider', 'services' => [ 'DBLoadBalancerFactory', ], 'args' => [ [ 'authoritative' => true, ], ], 'sort' => 100, ], ], 'secondaryauth' => [ 'MediaWiki\\Auth\\CheckBlocksSecondaryAuthenticationProvider' => [ 'class' => 'MediaWiki\\Auth\\CheckBlocksSecondaryAuthenticationProvider', 'sort' => 0, ], 'MediaWiki\\Auth\\ResetPasswordSecondaryAuthenticationProvider' => [ 'class' => 'MediaWiki\\Auth\\ResetPasswordSecondaryAuthenticationProvider', 'sort' => 100, ], 'MediaWiki\\Auth\\EmailNotificationSecondaryAuthenticationProvider' => [ 'class' => 'MediaWiki\\Auth\\EmailNotificationSecondaryAuthenticationProvider', 'services' => [ 'DBLoadBalancerFactory', ], 'sort' => 200, ], ], ], 'RememberMe' => 'choose', 'ReauthenticateTime' => [ 'default' => 3600, ], 'ChangeCredentialsBlacklist' => [ 'MediaWiki\\Auth\\TemporaryPasswordAuthenticationRequest', ], 'RemoveCredentialsBlacklist' => [ 'MediaWiki\\Auth\\PasswordAuthenticationRequest', ], 'InvalidPasswordReset' => true, 'PasswordDefault' => 'pbkdf2', 'PasswordConfig' => [ 'A' => [ 'class' => 'MediaWiki\\Password\\MWOldPassword', ], 'B' => [ 'class' => 'MediaWiki\\Password\\MWSaltedPassword', ], 'pbkdf2-legacyA' => [ 'class' => 'MediaWiki\\Password\\LayeredParameterizedPassword', 'types' => [ 'A', 'pbkdf2', ], ], 'pbkdf2-legacyB' => [ 'class' => 'MediaWiki\\Password\\LayeredParameterizedPassword', 'types' => [ 'B', 'pbkdf2', ], ], 'bcrypt' => [ 'class' => 'MediaWiki\\Password\\BcryptPassword', 'cost' => 9, ], 'pbkdf2' => [ 'class' => 'MediaWiki\\Password\\Pbkdf2PasswordUsingOpenSSL', 'algo' => 'sha512', 'cost' => '30000', 'length' => '64', ], 'argon2' => [ 'class' => 'MediaWiki\\Password\\Argon2Password', 'algo' => 'auto', ], ], 'PasswordResetRoutes' => [ 'username' => true, 'email' => true, ], 'MaxSigChars' => 255, 'SignatureValidation' => 'warning', 'SignatureAllowedLintErrors' => [ 'obsolete-tag', ], 'MaxNameChars' => 255, 'ReservedUsernames' => [ 'MediaWiki default', 'Conversion script', 'Maintenance script', 'Template namespace initialisation script', 'ScriptImporter', 'Delete page script', 'Move page script', 'Command line script', 'Unknown user', 'msg:double-redirect-fixer', 'msg:usermessage-editor', 'msg:proxyblocker', 'msg:sorbs', 'msg:spambot_username', 'msg:autochange-username', ], 'DefaultUserOptions' => [ 'ccmeonemails' => 0, 'date' => 'default', 'diffonly' => 0, 'diff-type' => 'table', 'disablemail' => 0, 'editfont' => 'monospace', 'editondblclick' => 0, 'editrecovery' => 0, 'editsectiononrightclick' => 0, 'email-allow-new-users' => 1, 'enotifminoredits' => 0, 'enotifrevealaddr' => 0, 'enotifusertalkpages' => 1, 'enotifwatchlistpages' => 1, 'extendwatchlist' => 1, 'fancysig' => 0, 'forceeditsummary' => 0, 'forcesafemode' => 0, 'gender' => 'unknown', 'hidecategorization' => 1, 'hideminor' => 0, 'hidepatrolled' => 0, 'imagesize' => 2, 'minordefault' => 0, 'newpageshidepatrolled' => 0, 'nickname' => '', 'norollbackdiff' => 0, 'prefershttps' => 1, 'previewonfirst' => 0, 'previewontop' => 1, 'pst-cssjs' => 1, 'rcdays' => 7, 'rcenhancedfilters-disable' => 0, 'rclimit' => 50, 'requireemail' => 0, 'search-match-redirect' => true, 'search-special-page' => 'Search', 'search-thumbnail-extra-namespaces' => true, 'searchlimit' => 20, 'showhiddencats' => 0, 'shownumberswatching' => 1, 'showrollbackconfirmation' => 0, 'skin' => false, 'skin-responsive' => 1, 'thumbsize' => 5, 'underline' => 2, 'useeditwarning' => 1, 'uselivepreview' => 0, 'usenewrc' => 1, 'watchcreations' => 1, 'watchcreations-expiry' => 'infinite', 'watchdefault' => 1, 'watchdefault-expiry' => 'infinite', 'watchdeletion' => 0, 'watchlistdays' => 7, 'watchlisthideanons' => 0, 'watchlisthidebots' => 0, 'watchlisthidecategorization' => 1, 'watchlisthideliu' => 0, 'watchlisthideminor' => 0, 'watchlisthideown' => 0, 'watchlisthidepatrolled' => 0, 'watchlistreloadautomatically' => 0, 'watchlistunwatchlinks' => 0, 'watchmoves' => 0, 'watchrollback' => 0, 'watchuploads' => 1, 'watchrollback-expiry' => 'infinite', 'watchstar-expiry' => 'infinite', 'wlenhancedfilters-disable' => 0, 'wllimit' => 250, ], 'ConditionalUserOptions' => [ ], 'HiddenPrefs' => [ ], 'UserJsPrefLimit' => 100, 'InvalidUsernameCharacters' => '@:>=', 'UserrightsInterwikiDelimiter' => '@', 'SecureLogin' => false, 'AuthenticationTokenVersion' => null, 'SessionProviders' => [ 'MediaWiki\\Session\\CookieSessionProvider' => [ 'class' => 'MediaWiki\\Session\\CookieSessionProvider', 'args' => [ [ 'priority' => 30, ], ], 'services' => [ 'JwtCodec', 'UrlUtils', ], ], 'MediaWiki\\Session\\BotPasswordSessionProvider' => [ 'class' => 'MediaWiki\\Session\\BotPasswordSessionProvider', 'args' => [ [ 'priority' => 75, ], ], 'services' => [ 'GrantsInfo', ], ], ], 'AutoCreateTempUser' => [ 'known' => false, 'enabled' => false, 'actions' => [ 'edit', ], 'genPattern' => '~$1', 'matchPattern' => null, 'reservedPattern' => '~$1', 'serialProvider' => [ 'type' => 'local', 'useYear' => true, ], 'serialMapping' => [ 'type' => 'readable-numeric', ], 'expireAfterDays' => 90, 'notifyBeforeExpirationDays' => 10, ], 'AutoblockExemptions' => [ ], 'AutoblockExpiry' => 86400, 'BlockAllowsUTEdit' => true, 'BlockCIDRLimit' => [ 'IPv4' => 16, 'IPv6' => 19, ], 'BlockDisablesLogin' => false, 'EnableMultiBlocks' => false, 'WhitelistRead' => false, 'WhitelistReadRegexp' => false, 'EmailConfirmToEdit' => false, 'HideIdentifiableRedirects' => true, 'GroupPermissions' => [ '*' => [ 'createaccount' => true, 'autocreateaccount' => true, 'read' => true, 'edit' => true, 'createpage' => true, 'createtalk' => true, 'viewmyprivateinfo' => true, 'editmyprivateinfo' => true, 'editmyoptions' => true, ], 'user' => [ 'move' => true, 'move-subpages' => true, 'move-rootuserpages' => true, 'move-categorypages' => true, 'movefile' => true, 'read' => true, 'edit' => true, 'createpage' => true, 'createtalk' => true, 'upload' => true, 'reupload' => true, 'reupload-shared' => true, 'minoredit' => true, 'editmyusercss' => true, 'editmyuserjson' => true, 'editmyuserjs' => true, 'editmyuserjsredirect' => true, 'sendemail' => true, 'applychangetags' => true, 'changetags' => true, 'viewmywatchlist' => true, 'editmywatchlist' => true, 'createwithcontentmodel' => true, 'logout' => true, ], 'autoconfirmed' => [ 'autoconfirmed' => true, 'editsemiprotected' => true, ], 'bot' => [ 'bot' => true, 'autoconfirmed' => true, 'editsemiprotected' => true, 'nominornewtalk' => true, 'autopatrol' => true, 'suppressredirect' => true, 'apihighlimits' => true, ], 'sysop' => [ 'block' => true, 'createaccount' => true, 'createpreviouslyrenamedaccount' => true, 'delete' => true, 'bigdelete' => true, 'deletedhistory' => true, 'deletedtext' => true, 'undelete' => true, 'editcontentmodel' => true, 'editinterface' => true, 'editsitejson' => true, 'edituserjson' => true, 'import' => true, 'importupload' => true, 'move' => true, 'move-subpages' => true, 'move-rootuserpages' => true, 'move-categorypages' => true, 'patrol' => true, 'autopatrol' => true, 'protect' => true, 'editprotected' => true, 'rollback' => true, 'upload' => true, 'reupload' => true, 'reupload-shared' => true, 'unwatchedpages' => true, 'autoconfirmed' => true, 'editsemiprotected' => true, 'ipblock-exempt' => true, 'blockemail' => true, 'markbotedits' => true, 'apihighlimits' => true, 'browsearchive' => true, 'noratelimit' => true, 'movefile' => true, 'unblockself' => true, 'suppressredirect' => true, 'mergehistory' => true, 'managechangetags' => true, 'deletechangetags' => true, ], 'interface-admin' => [ 'editinterface' => true, 'editsitecss' => true, 'editsitejson' => true, 'editsitejs' => true, 'editusercss' => true, 'edituserjson' => true, 'edituserjs' => true, ], 'bureaucrat' => [ 'userrights' => true, 'noratelimit' => true, 'renameuser' => true, ], 'suppress' => [ 'hideuser' => true, 'suppressrevision' => true, 'viewsuppressed' => true, 'suppressionlog' => true, 'deleterevision' => true, 'deletelogentry' => true, ], ], 'PrivilegedGroups' => [ 'bureaucrat', 'interface-admin', 'suppress', 'sysop', ], 'RevokePermissions' => [ ], 'GroupInheritsPermissions' => [ ], 'ImplicitGroups' => [ '*', 'user', 'autoconfirmed', ], 'GroupsAddToSelf' => [ ], 'GroupsRemoveFromSelf' => [ ], 'RestrictedGroups' => [ ], 'UserRequirementsPrivateConditions' => [ ], 'RestrictionTypes' => [ 'create', 'edit', 'move', 'upload', ], 'RestrictionLevels' => [ '', 'autoconfirmed', 'sysop', ], 'CascadingRestrictionLevels' => [ 'sysop', ], 'SemiprotectedRestrictionLevels' => [ 'autoconfirmed', ], 'NamespaceProtection' => [ ], 'RestrictUserPageEditing' => false, 'NonincludableNamespaces' => [ ], 'AutoConfirmAge' => 0, 'AutoConfirmCount' => 0, 'Autopromote' => [ 'autoconfirmed' => [ '&', [ 1, null, ], [ 2, null, ], ], ], 'AutopromoteOnce' => [ 'onEdit' => [ ], ], 'AutopromoteOnceLogInRC' => true, 'AutopromoteOnceRCExcludedGroups' => [ ], 'AddGroups' => [ ], 'RemoveGroups' => [ ], 'AvailableRights' => [ ], 'ImplicitRights' => [ ], 'DeleteRevisionsLimit' => 0, 'DeleteRevisionsBatchSize' => 1000, 'HideUserContribLimit' => 1000, 'AccountCreationThrottle' => [ [ 'count' => 0, 'seconds' => 86400, ], ], 'TempAccountCreationThrottle' => [ [ 'count' => 1, 'seconds' => 600, ], [ 'count' => 6, 'seconds' => 86400, ], ], 'TempAccountNameAcquisitionThrottle' => [ [ 'count' => 60, 'seconds' => 86400, ], ], 'SpamRegex' => [ ], 'SummarySpamRegex' => [ ], 'EnableDnsBlacklist' => false, 'DnsBlacklistUrls' => [ ], 'ProxyList' => [ ], 'ProxyWhitelist' => [ ], 'SoftBlockRanges' => [ ], 'ApplyIpBlocksToXff' => false, 'RateLimits' => [ 'edit' => [ 'ip' => [ 8, 60, ], 'newbie' => [ 8, 60, ], 'user' => [ 90, 60, ], ], 'move' => [ 'newbie' => [ 2, 120, ], 'user' => [ 8, 60, ], ], 'upload' => [ 'ip' => [ 8, 60, ], 'newbie' => [ 8, 60, ], ], 'rollback' => [ 'user' => [ 10, 60, ], 'newbie' => [ 5, 120, ], ], 'mailpassword' => [ 'ip' => [ 5, 3600, ], ], 'sendemail' => [ 'ip' => [ 5, 86400, ], 'newbie' => [ 5, 86400, ], 'user' => [ 20, 86400, ], ], 'changeemail' => [ 'ip-all' => [ 10, 3600, ], 'user' => [ 4, 86400, ], ], 'confirmemail' => [ 'ip-all' => [ 10, 3600, ], 'user' => [ 4, 86400, ], ], 'purge' => [ 'ip' => [ 30, 60, ], 'user' => [ 30, 60, ], ], 'linkpurge' => [ 'ip' => [ 30, 60, ], 'user' => [ 30, 60, ], ], 'renderfile' => [ 'ip' => [ 700, 30, ], 'user' => [ 700, 30, ], ], 'renderfile-nonstandard' => [ 'ip' => [ 70, 30, ], 'user' => [ 70, 30, ], ], 'stashedit' => [ 'ip' => [ 30, 60, ], 'newbie' => [ 30, 60, ], ], 'stashbasehtml' => [ 'ip' => [ 5, 60, ], 'newbie' => [ 5, 60, ], ], 'changetags' => [ 'ip' => [ 8, 60, ], 'newbie' => [ 8, 60, ], ], 'editcontentmodel' => [ 'newbie' => [ 2, 120, ], 'user' => [ 8, 60, ], ], ], 'RateLimitsExcludedIPs' => [ ], 'PutIPinRC' => true, 'QueryPageDefaultLimit' => 50, 'ExternalQuerySources' => [ ], 'PasswordAttemptThrottle' => [ [ 'count' => 5, 'seconds' => 300, ], [ 'count' => 150, 'seconds' => 172800, ], ], 'GrantPermissions' => [ 'basic' => [ 'autocreateaccount' => true, 'autoconfirmed' => true, 'autopatrol' => true, 'editsemiprotected' => true, 'ipblock-exempt' => true, 'nominornewtalk' => true, 'patrolmarks' => true, 'read' => true, 'unwatchedpages' => true, ], 'highvolume' => [ 'bot' => true, 'apihighlimits' => true, 'noratelimit' => true, 'markbotedits' => true, ], 'import' => [ 'import' => true, 'importupload' => true, ], 'editpage' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'createwithcontentmodel' => true, 'pagelang' => true, ], 'editprotected' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'createwithcontentmodel' => true, 'editprotected' => true, ], 'editmycssjs' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'createwithcontentmodel' => true, 'editmyusercss' => true, 'editmyuserjson' => true, 'editmyuserjs' => true, ], 'editmyoptions' => [ 'editmyoptions' => true, 'editmyuserjson' => true, ], 'editinterface' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'createwithcontentmodel' => true, 'editinterface' => true, 'edituserjson' => true, 'editsitejson' => true, ], 'editsiteconfig' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'createwithcontentmodel' => true, 'editinterface' => true, 'edituserjson' => true, 'editsitejson' => true, 'editusercss' => true, 'edituserjs' => true, 'editsitecss' => true, 'editsitejs' => true, ], 'createeditmovepage' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'createwithcontentmodel' => true, 'createpage' => true, 'createtalk' => true, 'delete-redirect' => true, 'move' => true, 'move-rootuserpages' => true, 'move-subpages' => true, 'move-categorypages' => true, 'suppressredirect' => true, ], 'uploadfile' => [ 'upload' => true, 'reupload-own' => true, ], 'uploadeditmovefile' => [ 'upload' => true, 'reupload-own' => true, 'reupload' => true, 'reupload-shared' => true, 'upload_by_url' => true, 'movefile' => true, 'suppressredirect' => true, ], 'patrol' => [ 'patrol' => true, ], 'rollback' => [ 'rollback' => true, ], 'blockusers' => [ 'block' => true, 'blockemail' => true, ], 'viewdeleted' => [ 'browsearchive' => true, 'deletedhistory' => true, 'deletedtext' => true, ], 'viewrestrictedlogs' => [ 'suppressionlog' => true, ], 'delete' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'createwithcontentmodel' => true, 'browsearchive' => true, 'deletedhistory' => true, 'deletedtext' => true, 'delete' => true, 'bigdelete' => true, 'deletelogentry' => true, 'deleterevision' => true, 'undelete' => true, ], 'oversight' => [ 'suppressrevision' => true, 'viewsuppressed' => true, ], 'protect' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'createwithcontentmodel' => true, 'editprotected' => true, 'protect' => true, ], 'viewmywatchlist' => [ 'viewmywatchlist' => true, ], 'editmywatchlist' => [ 'editmywatchlist' => true, ], 'sendemail' => [ 'sendemail' => true, ], 'createaccount' => [ 'createaccount' => true, ], 'privateinfo' => [ 'viewmyprivateinfo' => true, ], 'mergehistory' => [ 'mergehistory' => true, ], 'managesessions' => [ 'logout' => true, ], ], 'GrantPermissionGroups' => [ 'basic' => 'hidden', 'editpage' => 'page-interaction', 'createeditmovepage' => 'page-interaction', 'editprotected' => 'page-interaction', 'patrol' => 'page-interaction', 'uploadfile' => 'file-interaction', 'uploadeditmovefile' => 'file-interaction', 'sendemail' => 'email', 'viewmywatchlist' => 'watchlist-interaction', 'editmywatchlist' => 'watchlist-interaction', 'editmycssjs' => 'customization', 'editmyoptions' => 'customization', 'editinterface' => 'administration', 'editsiteconfig' => 'administration', 'rollback' => 'administration', 'blockusers' => 'administration', 'delete' => 'administration', 'viewdeleted' => 'administration', 'viewrestrictedlogs' => 'administration', 'protect' => 'administration', 'oversight' => 'administration', 'createaccount' => 'administration', 'mergehistory' => 'administration', 'import' => 'administration', 'highvolume' => 'high-volume', 'privateinfo' => 'private-information', 'managesessions' => 'private-information', ], 'GrantRiskGroups' => [ 'basic' => 'low', 'editpage' => 'low', 'createeditmovepage' => 'low', 'editprotected' => 'vandalism', 'patrol' => 'low', 'uploadfile' => 'low', 'uploadeditmovefile' => 'low', 'sendemail' => 'security', 'viewmywatchlist' => 'low', 'editmywatchlist' => 'low', 'editmycssjs' => 'security', 'editmyoptions' => 'security', 'editinterface' => 'vandalism', 'editsiteconfig' => 'security', 'rollback' => 'low', 'blockusers' => 'vandalism', 'delete' => 'vandalism', 'viewdeleted' => 'vandalism', 'viewrestrictedlogs' => 'security', 'protect' => 'vandalism', 'oversight' => 'security', 'createaccount' => 'low', 'mergehistory' => 'vandalism', 'import' => 'security', 'highvolume' => 'low', 'privateinfo' => 'low', 'managesessions' => 'low', ], 'EnableBotPasswords' => true, 'BotPasswordsCluster' => false, 'BotPasswordsDatabase' => false, 'BotPasswordsLimit' => 100, 'SecretKey' => false, 'JwtPrivateKey' => false, 'JwtPublicKey' => false, 'AllowUserJs' => false, 'ReauthenticateForActions' => [ 'edituserjs' => 'edituserjscss', 'editusercss' => 'edituserjscss', 'editsitejs' => 'editsitejscss', 'editsitecss' => 'editsitejscss', ], 'AllowUserCss' => false, 'AllowUserCssPrefs' => true, 'UseSiteJs' => true, 'UseSiteCss' => true, 'BreakFrames' => false, 'EditPageFrameOptions' => 'DENY', 'ApiFrameOptions' => 'DENY', 'CSPHeader' => false, 'CSPReportOnlyHeader' => false, 'CSPUseReportURIDirective' => false, 'CSPFalsePositiveUrls' => [ 'https: 'https: 'https: 'https: 'https: 'https: 'https: 'https: 'https: 'https: 'https: 'https: 'https: 'https: 'chrome-extension' => true, ], 'AllowCrossOrigin' => false, 'RestAllowCrossOriginCookieAuth' => false, 'SessionSecret' => false, 'CookieExpiration' => 2592000, 'ExtendedLoginCookieExpiration' => 15552000, 'SessionCookieJwtExpiration' => 14400, 'CookieDomain' => '', 'CookiePath' => '/', 'CookieSecure' => 'detect', 'CookiePrefix' => false, 'CookieHttpOnly' => true, 'CookieSameSite' => null, 'CacheVaryCookies' => [ ], 'SessionName' => false, 'CookieSetOnAutoblock' => true, 'CookieSetOnIpBlock' => true, 'DeviceBoundSessions' => false, 'DeviceBoundSessionsReportOnly' => true, 'DeviceBoundSessionCookieName' => '__Host-dbsc', 'DeviceBoundSessionCredentialTTL' => 600, 'DeviceBoundSessionChallengeTTL' => 900, 'DeviceBoundSessionBindingTTL' => 2592000, 'DeviceBoundSessionScopeExcludes' => [ ], 'DebugLogFile' => '', 'DebugLogPrefix' => '', 'DebugRedirects' => false, 'DebugRawPage' => false, 'DebugComments' => false, 'DebugDumpSql' => false, 'TrxProfilerLimits' => [ 'GET' => [ 'masterConns' => 0, 'writes' => 0, 'readQueryTime' => 5, 'readQueryRows' => 10000, ], 'POST' => [ 'readQueryTime' => 5, 'writeQueryTime' => 1, 'readQueryRows' => 100000, 'maxAffected' => 1000, ], 'POST-nonwrite' => [ 'writes' => 0, 'readQueryTime' => 5, 'readQueryRows' => 10000, ], 'PostSend-GET' => [ 'readQueryTime' => 5, 'writeQueryTime' => 1, 'readQueryRows' => 10000, 'maxAffected' => 1000, 'masterConns' => 0, 'writes' => 0, ], 'PostSend-POST' => [ 'readQueryTime' => 5, 'writeQueryTime' => 1, 'readQueryRows' => 100000, 'maxAffected' => 1000, ], 'JobRunner' => [ 'readQueryTime' => 30, 'writeQueryTime' => 5, 'readQueryRows' => 100000, 'maxAffected' => 500, ], 'Maintenance' => [ 'writeQueryTime' => 5, 'maxAffected' => 1000, ], ], 'DebugLogGroups' => [ ], 'MWLoggerDefaultSpi' => [ 'class' => 'MediaWiki\\Logger\\LegacySpi', ], 'ShowDebug' => false, 'SpecialVersionShowHooks' => false, 'ShowExceptionDetails' => false, 'LogExceptionBacktrace' => true, 'PropagateErrors' => true, 'ShowHostnames' => false, 'OverrideHostname' => false, 'DevelopmentWarnings' => false, 'DeprecationReleaseLimit' => false, 'Profiler' => [ ], 'StatsTarget' => null, 'StatsFormat' => null, 'StatsPrefix' => 'mediawiki', 'OpenTelemetryConfig' => null, 'PageInfoTransclusionLimit' => 50, 'EnableJavaScriptTest' => false, 'DebugToolbar' => false, 'ApiClientErrorSampleRate' => 1.0, 'DisableTextSearch' => false, 'AdvancedSearchHighlighting' => false, 'SearchHighlightBoundaries' => '[\\p{Z}\\p{P}\\p{C}]', 'OpenSearchTemplates' => [ 'application/x-suggestions+json' => false, 'application/x-suggestions+xml' => false, ], 'OpenSearchDefaultLimit' => 10, 'OpenSearchDescriptionLength' => 100, 'SearchSuggestCacheExpiry' => 1200, 'DisableSearchUpdate' => false, 'NamespacesToBeSearchedDefault' => [ true, ], 'DisableInternalSearch' => false, 'SearchForwardUrl' => null, 'SitemapNamespaces' => false, 'SitemapNamespacesPriorities' => false, 'SitemapApiConfig' => [ ], 'SpecialSearchFormOptions' => [ ], 'SearchMatchRedirectPreference' => false, 'SearchRunSuggestedQuery' => true, 'Diff3' => '/usr/bin/diff3', 'Diff' => '/usr/bin/diff', 'PreviewOnOpenNamespaces' => [ 14 => true, ], 'UniversalEditButton' => true, 'UseAutomaticEditSummaries' => true, 'CommandLineDarkBg' => false, 'ReadOnly' => null, 'ReadOnlyWatchedItemStore' => false, 'ReadOnlyFile' => false, 'UpgradeKey' => false, 'GitBin' => '/usr/bin/git', 'GitRepositoryViewers' => [ 'https: 'ssh: 'https: 'git@github\\.com:(.*?)(\\.git)?' => 'https: ], 'InstallerInitialPages' => [ [ 'titlemsg' => 'mainpage', 'text' => '{{subst:int:mainpagetext}}{{subst:int:mainpagedocfooter}}', ], ], 'RCMaxAge' => 7776000, 'WatchersMaxAge' => 15552000, 'UnwatchedPageSecret' => 1, 'RCFilterByAge' => false, 'RCLinkLimits' => [ 50, 100, 250, 500, ], 'RCLinkDays' => [ 1, 3, 7, 14, 30, ], 'RCFeeds' => [ ], 'RCWatchCategoryMembership' => false, 'UseRCPatrol' => true, 'StructuredChangeFiltersLiveUpdatePollingRate' => 3, 'UseNPPatrol' => true, 'UseFilePatrol' => true, 'Feed' => true, 'FeedLimit' => 50, 'FeedCacheTimeout' => 60, 'FeedDiffCutoff' => 32768, 'OverrideSiteFeed' => [ ], 'FeedClasses' => [ 'rss' => 'MediaWiki\\Feed\\RSSFeed', 'atom' => 'MediaWiki\\Feed\\AtomFeed', ], 'AdvertisedFeedTypes' => [ 'atom', ], 'RCShowWatchingUsers' => false, 'RCShowChangedSize' => true, 'RCChangedSizeThreshold' => 500, 'ShowUpdatedMarker' => true, 'DisableAnonTalk' => false, 'UseTagFilter' => true, 'SoftwareTags' => [ 'mw-contentmodelchange' => true, 'mw-new-redirect' => true, 'mw-removed-redirect' => true, 'mw-changed-redirect-target' => true, 'mw-blank' => true, 'mw-replace' => true, 'mw-recreated' => true, 'mw-rollback' => true, 'mw-undo' => true, 'mw-manual-revert' => true, 'mw-reverted' => true, 'mw-server-side-upload' => true, 'mw-ipblock-appeal' => true, 'mw-edited-other-users-js' => true, 'mw-edited-other-users-css' => true, ], 'RestrictedTagViewRights' => [ ], 'UnwatchedPageThreshold' => false, 'RecentChangesFlags' => [ 'newpage' => [ 'letter' => 'newpageletter', 'title' => 'recentchanges-label-newpage', 'legend' => 'recentchanges-legend-newpage', 'grouping' => 'any', ], 'minor' => [ 'letter' => 'minoreditletter', 'title' => 'recentchanges-label-minor', 'legend' => 'recentchanges-legend-minor', 'class' => 'minoredit', 'grouping' => 'all', ], 'bot' => [ 'letter' => 'boteditletter', 'title' => 'recentchanges-label-bot', 'legend' => 'recentchanges-legend-bot', 'class' => 'botedit', 'grouping' => 'all', ], 'unpatrolled' => [ 'letter' => 'unpatrolledletter', 'title' => 'recentchanges-label-unpatrolled', 'legend' => 'recentchanges-legend-unpatrolled', 'grouping' => 'any', ], ], 'WatchlistExpiry' => false, 'EnableWatchstarPopover' => false, 'EnableWatchlistLabels' => false, 'WatchlistLabelsMaxPerUser' => 100, 'WatchlistPurgeRate' => 0.1, 'WatchlistExpiryMaxDuration' => '1 year', 'EnableChangesListQueryPartitioning' => false, 'RightsPage' => null, 'RightsUrl' => null, 'RightsText' => null, 'RightsIcon' => null, 'UseCopyrightUpload' => false, 'MaxCredits' => 0, 'ShowCreditsIfMax' => true, 'ImportSources' => [ ], 'ImportTargetNamespace' => null, 'ExportAllowHistory' => true, 'ExportMaxHistory' => 0, 'ExportAllowListContributors' => false, 'ExportMaxLinkDepth' => 0, 'ExportFromNamespaces' => false, 'ExportAllowAll' => false, 'ExportPagelistLimit' => 5000, 'XmlDumpSchemaVersion' => '0.11', 'WikiFarmSettingsDirectory' => null, 'WikiFarmSettingsExtension' => 'yaml', 'ExtensionFunctions' => [ ], 'ExtensionMessagesFiles' => [ ], 'MessagesDirs' => [ ], 'TranslationAliasesDirs' => [ ], 'ExtensionEntryPointListFiles' => [ ], 'EnableParserLimitReporting' => true, 'ValidSkinNames' => [ ], 'SpecialPages' => [ ], 'ExtensionCredits' => [ ], 'Hooks' => [ ], 'ServiceWiringFiles' => [ ], 'JobClasses' => [ 'deletePage' => 'MediaWiki\\Page\\DeletePageJob', 'refreshLinks' => 'MediaWiki\\JobQueue\\Jobs\\RefreshLinksJob', 'deleteLinks' => 'MediaWiki\\Page\\DeleteLinksJob', 'htmlCacheUpdate' => 'MediaWiki\\JobQueue\\Jobs\\HTMLCacheUpdateJob', 'sendMail' => [ 'class' => 'MediaWiki\\Mail\\EmaillingJob', 'services' => [ 'Emailer', ], ], 'enotifNotify' => [ 'class' => 'MediaWiki\\RecentChanges\\RecentChangeNotifyJob', 'services' => [ 'RecentChangeLookup', ], ], 'fixDoubleRedirect' => [ 'class' => 'MediaWiki\\JobQueue\\Jobs\\DoubleRedirectJob', 'services' => [ 'RevisionLookup', 'MagicWordFactory', 'WikiPageFactory', ], 'needsPage' => true, ], 'AssembleUploadChunks' => 'MediaWiki\\JobQueue\\Jobs\\AssembleUploadChunksJob', 'PublishStashedFile' => 'MediaWiki\\JobQueue\\Jobs\\PublishStashedFileJob', 'ThumbnailRender' => 'MediaWiki\\JobQueue\\Jobs\\ThumbnailRenderJob', 'UploadFromUrl' => 'MediaWiki\\JobQueue\\Jobs\\UploadFromUrlJob', 'recentChangesUpdate' => 'MediaWiki\\RecentChanges\\RecentChangesUpdateJob', 'refreshLinksPrioritized' => 'MediaWiki\\JobQueue\\Jobs\\RefreshLinksJob', 'refreshLinksDynamic' => 'MediaWiki\\JobQueue\\Jobs\\RefreshLinksJob', 'activityUpdateJob' => 'MediaWiki\\Watchlist\\ActivityUpdateJob', 'categoryMembershipChange' => [ 'class' => 'MediaWiki\\RecentChanges\\CategoryMembershipChangeJob', 'services' => [ 'RecentChangeFactory', ], ], 'CategoryCountUpdateJob' => [ 'class' => 'MediaWiki\\JobQueue\\Jobs\\CategoryCountUpdateJob', 'services' => [ 'ConnectionProvider', 'NamespaceInfo', ], ], 'clearUserWatchlist' => 'MediaWiki\\Watchlist\\ClearUserWatchlistJob', 'watchlistExpiry' => [ 'class' => 'MediaWiki\\Watchlist\\WatchlistExpiryJob', 'needsPage' => false, ], 'cdnPurge' => 'MediaWiki\\JobQueue\\Jobs\\CdnPurgeJob', 'userGroupExpiry' => 'MediaWiki\\User\\UserGroupExpiryJob', 'clearWatchlistNotifications' => 'MediaWiki\\Watchlist\\ClearWatchlistNotificationsJob', 'userOptionsUpdate' => 'MediaWiki\\User\\Options\\UserOptionsUpdateJob', 'revertedTagUpdate' => 'MediaWiki\\JobQueue\\Jobs\\RevertedTagUpdateJob', 'null' => 'MediaWiki\\JobQueue\\Jobs\\NullJob', 'userEditCountInit' => 'MediaWiki\\User\\UserEditCountInitJob', 'renameUserTable' => [ 'class' => 'MediaWiki\\RenameUser\\Job\\RenameUserTableJob', 'services' => [ 'MainConfig', 'DBLoadBalancerFactory', ], ], 'renameUserDerived' => [ 'class' => 'MediaWiki\\RenameUser\\Job\\RenameUserDerivedJob', 'services' => [ 'RenameUserFactory', 'UserFactory', ], ], 'renameUser' => [ 'class' => 'MediaWiki\\RenameUser\\Job\\RenameUserTableJob', 'services' => [ 'MainConfig', 'DBLoadBalancerFactory', ], ], ], 'JobTypesExcludedFromDefaultQueue' => [ 'AssembleUploadChunks', 'PublishStashedFile', 'UploadFromUrl', ], 'JobBackoffThrottling' => [ ], 'JobTypeConf' => [ 'default' => [ 'class' => 'MediaWiki\\JobQueue\\JobQueueDB', 'order' => 'random', 'claimTTL' => 3600, ], ], 'JobQueueIncludeInMaxLagFactor' => false, 'SpecialPageCacheUpdates' => [ 'Statistics' => [ 'MediaWiki\\Deferred\\SiteStatsUpdate', 'cacheUpdate', ], ], 'PagePropLinkInvalidations' => [ 'hiddencat' => 'categorylinks', ], 'CategoryMagicGallery' => true, 'CategoryPagingLimit' => 200, 'CategoryCollation' => 'uppercase', 'TempCategoryCollations' => [ ], 'SortedCategories' => false, 'TrackingCategories' => [ ], 'LogTypes' => [ '', 'block', 'protect', 'rights', 'delete', 'upload', 'move', 'import', 'interwiki', 'patrol', 'merge', 'suppress', 'tag', 'managetags', 'contentmodel', 'renameuser', ], 'LogRestrictions' => [ 'suppress' => 'suppressionlog', ], 'FilterLogTypes' => [ 'patrol' => true, 'tag' => true, 'newusers' => false, ], 'LogNames' => [ '' => 'all-logs-page', 'block' => 'blocklogpage', 'protect' => 'protectlogpage', 'rights' => 'rightslog', 'delete' => 'dellogpage', 'upload' => 'uploadlogpage', 'move' => 'movelogpage', 'import' => 'importlogpage', 'patrol' => 'patrol-log-page', 'merge' => 'mergelog', 'suppress' => 'suppressionlog', ], 'LogHeaders' => [ '' => 'alllogstext', 'block' => 'blocklogtext', 'delete' => 'dellogpagetext', 'import' => 'importlogpagetext', 'merge' => 'mergelogpagetext', 'move' => 'movelogpagetext', 'patrol' => 'patrol-log-header', 'protect' => 'protectlogtext', 'rights' => 'rightslogtext', 'suppress' => 'suppressionlogtext', 'upload' => 'uploadlogpagetext', ], 'LogActions' => [ ], 'LogActionsHandlers' => [ 'block/block' => [ 'class' => 'MediaWiki\\Logging\\BlockLogFormatter', 'services' => [ 'TitleParser', 'NamespaceInfo', ], ], 'block/reblock' => [ 'class' => 'MediaWiki\\Logging\\BlockLogFormatter', 'services' => [ 'TitleParser', 'NamespaceInfo', ], ], 'block/unblock' => [ 'class' => 'MediaWiki\\Logging\\BlockLogFormatter', 'services' => [ 'TitleParser', 'NamespaceInfo', ], ], 'contentmodel/change' => 'MediaWiki\\Logging\\ContentModelLogFormatter', 'contentmodel/new' => 'MediaWiki\\Logging\\ContentModelLogFormatter', 'delete/delete' => 'MediaWiki\\Logging\\DeleteLogFormatter', 'delete/delete_redir' => 'MediaWiki\\Logging\\DeleteLogFormatter', 'delete/delete_redir2' => 'MediaWiki\\Logging\\DeleteLogFormatter', 'delete/event' => 'MediaWiki\\Logging\\DeleteLogFormatter', 'delete/restore' => 'MediaWiki\\Logging\\DeleteLogFormatter', 'delete/revision' => 'MediaWiki\\Logging\\DeleteLogFormatter', 'import/interwiki' => 'MediaWiki\\Logging\\ImportLogFormatter', 'import/upload' => 'MediaWiki\\Logging\\ImportLogFormatter', 'interwiki/iw_add' => 'MediaWiki\\Logging\\InterwikiLogFormatter', 'interwiki/iw_delete' => 'MediaWiki\\Logging\\InterwikiLogFormatter', 'interwiki/iw_edit' => 'MediaWiki\\Logging\\InterwikiLogFormatter', 'managetags/activate' => 'MediaWiki\\Logging\\LogFormatter', 'managetags/create' => 'MediaWiki\\Logging\\LogFormatter', 'managetags/deactivate' => 'MediaWiki\\Logging\\LogFormatter', 'managetags/delete' => 'MediaWiki\\Logging\\LogFormatter', 'merge/merge' => [ 'class' => 'MediaWiki\\Logging\\MergeLogFormatter', 'services' => [ 'TitleParser', ], ], 'merge/merge-into' => [ 'class' => 'MediaWiki\\Logging\\MergeLogFormatter', 'services' => [ 'TitleParser', ], ], 'move/move' => [ 'class' => 'MediaWiki\\Logging\\MoveLogFormatter', 'services' => [ 'TitleParser', ], ], 'move/move_redir' => [ 'class' => 'MediaWiki\\Logging\\MoveLogFormatter', 'services' => [ 'TitleParser', ], ], 'patrol/patrol' => 'MediaWiki\\Logging\\PatrolLogFormatter', 'patrol/autopatrol' => 'MediaWiki\\Logging\\PatrolLogFormatter', 'protect/modify' => [ 'class' => 'MediaWiki\\Logging\\ProtectLogFormatter', 'services' => [ 'TitleParser', ], ], 'protect/move_prot' => [ 'class' => 'MediaWiki\\Logging\\ProtectLogFormatter', 'services' => [ 'TitleParser', ], ], 'protect/protect' => [ 'class' => 'MediaWiki\\Logging\\ProtectLogFormatter', 'services' => [ 'TitleParser', ], ], 'protect/unprotect' => [ 'class' => 'MediaWiki\\Logging\\ProtectLogFormatter', 'services' => [ 'TitleParser', ], ], 'renameuser/renameuser' => [ 'class' => 'MediaWiki\\Logging\\RenameuserLogFormatter', 'services' => [ 'TitleParser', ], ], 'rights/autopromote' => 'MediaWiki\\Logging\\RightsLogFormatter', 'rights/rights' => 'MediaWiki\\Logging\\RightsLogFormatter', 'suppress/block' => [ 'class' => 'MediaWiki\\Logging\\BlockLogFormatter', 'services' => [ 'TitleParser', 'NamespaceInfo', ], ], 'suppress/delete' => 'MediaWiki\\Logging\\DeleteLogFormatter', 'suppress/event' => 'MediaWiki\\Logging\\DeleteLogFormatter', 'suppress/reblock' => [ 'class' => 'MediaWiki\\Logging\\BlockLogFormatter', 'services' => [ 'TitleParser', 'NamespaceInfo', ], ], 'suppress/revision' => 'MediaWiki\\Logging\\DeleteLogFormatter', 'tag/update' => 'MediaWiki\\Logging\\TagLogFormatter', 'upload/overwrite' => 'MediaWiki\\Logging\\UploadLogFormatter', 'upload/revert' => 'MediaWiki\\Logging\\UploadLogFormatter', 'upload/upload' => 'MediaWiki\\Logging\\UploadLogFormatter', ], 'ActionFilteredLogs' => [ 'block' => [ 'block' => [ 'block', ], 'reblock' => [ 'reblock', ], 'unblock' => [ 'unblock', ], ], 'contentmodel' => [ 'change' => [ 'change', ], 'new' => [ 'new', ], ], 'delete' => [ 'delete' => [ 'delete', ], 'delete_redir' => [ 'delete_redir', 'delete_redir2', ], 'restore' => [ 'restore', ], 'event' => [ 'event', ], 'revision' => [ 'revision', ], ], 'import' => [ 'interwiki' => [ 'interwiki', ], 'upload' => [ 'upload', ], ], 'managetags' => [ 'create' => [ 'create', ], 'delete' => [ 'delete', ], 'activate' => [ 'activate', ], 'deactivate' => [ 'deactivate', ], ], 'move' => [ 'move' => [ 'move', ], 'move_redir' => [ 'move_redir', ], ], 'newusers' => [ 'create' => [ 'create', 'newusers', ], 'create2' => [ 'create2', ], 'autocreate' => [ 'autocreate', ], 'byemail' => [ 'byemail', ], ], 'protect' => [ 'protect' => [ 'protect', ], 'modify' => [ 'modify', ], 'unprotect' => [ 'unprotect', ], 'move_prot' => [ 'move_prot', ], ], 'rights' => [ 'rights' => [ 'rights', ], 'autopromote' => [ 'autopromote', ], ], 'suppress' => [ 'event' => [ 'event', ], 'revision' => [ 'revision', ], 'delete' => [ 'delete', ], 'block' => [ 'block', ], 'reblock' => [ 'reblock', ], ], 'upload' => [ 'upload' => [ 'upload', ], 'overwrite' => [ 'overwrite', ], 'revert' => [ 'revert', ], ], ], 'NewUserLog' => true, 'WatchUserPageOnAccountCreation' => true, 'PageCreationLog' => true, 'AllowSpecialInclusion' => true, 'DisableQueryPageUpdate' => false, 'CountCategorizedImagesAsUsed' => false, 'MaxRedirectLinksRetrieved' => 500, 'RangeContributionsCIDRLimit' => [ 'IPv4' => 16, 'IPv6' => 32, ], 'Actions' => [ ], 'DefaultRobotPolicy' => 'index,follow', 'NamespaceRobotPolicies' => [ ], 'ArticleRobotPolicies' => [ ], 'ExemptFromUserRobotsControl' => null, 'DebugAPI' => false, 'APIModules' => [ ], 'APIFormatModules' => [ ], 'APIMetaModules' => [ ], 'APIPropModules' => [ ], 'APIListModules' => [ ], 'APIMaxDBRows' => 5000, 'APIMaxResultSize' => 8388608, 'APIMaxUncachedDiffs' => 1, 'APIMaxLagThreshold' => 7, 'APICacheHelpTimeout' => 3600, 'APIUselessQueryPages' => [ 'MIMEsearch', 'LinkSearch', ], 'AjaxLicensePreview' => true, 'CrossSiteAJAXdomains' => [ ], 'CrossSiteAJAXdomainExceptions' => [ ], 'AllowedCorsHeaders' => [ 'Accept', 'Accept-Language', 'Content-Language', 'Content-Type', 'Accept-Encoding', 'DNT', 'Origin', 'User-Agent', 'Api-User-Agent', 'Promise-Non-Write-API-Action', 'Access-Control-Max-Age', 'Authorization', ], 'RestAPIAdditionalRouteFiles' => [ ], 'RestLocalModuleTestBaseUrl' => null, 'RestModuleOverrides' => [ ], 'RestExternalModules' => [ ], 'RestTermsOfServiceUrl' => null, 'MaxShellMemory' => 307200, 'MaxShellFileSize' => 102400, 'MaxShellTime' => 180, 'MaxShellWallClockTime' => 180, 'ShellCgroup' => false, 'PhpCli' => '/usr/bin/php', 'ShellRestrictionMethod' => 'autodetect', 'ShellboxUrls' => [ 'default' => null, ], 'ShellboxSecretKey' => null, 'ShellboxShell' => '/bin/sh', 'HTTPTimeout' => 25, 'HTTPConnectTimeout' => 5.0, 'HTTPMaxTimeout' => 0, 'HTTPMaxConnectTimeout' => 0, 'HTTPImportTimeout' => 25, 'HTTPUserAgentContact' => false, 'AsyncHTTPTimeout' => 25, 'HTTPProxy' => '', 'LocalVirtualHosts' => [ ], 'LocalHTTPProxy' => false, 'AllowExternalReqID' => false, 'GenerateReqIDFormat' => 'rand24', 'JobRunRate' => 1, 'RunJobsAsync' => false, 'UpdateRowsPerJob' => 300, 'UpdateRowsPerQuery' => 100, 'RedirectOnLogin' => null, 'EventRelayerConfig' => [ 'default' => [ 'class' => 'Wikimedia\\EventRelayer\\EventRelayerNull', ], ], 'Pingback' => false, 'OriginTrials' => [ ], 'ReportToExpiry' => 86400, 'ReportToEndpoints' => [ ], 'FeaturePolicyReportOnly' => [ ], 'SkinsPreferred' => [ 'vector-2022', 'vector', ], 'SpecialContributeSkinsEnabled' => [ ], 'SpecialContributeNewPageTarget' => null, 'EnableEditRecovery' => false, 'EditRecoveryExpiry' => 2592000, 'UseCodexSpecialBlock' => false, 'ShowLogoutConfirmation' => false, 'EnableProtectionIndicators' => true, 'OutputPipelineStages' => [ ], 'FeatureShutdown' => [ ], 'UseLeximorph' => false, 'UsePostprocCacheLegacy' => false, 'UsePostprocCacheParsoid' => true, 'ParserOptionsLogUnsafeSampleRate' => 0, 'ReturnExperimentalPFragmentTypes' => [ ], 'UseParsoidLinksUpdate' => null, 'UseParsoidMessages' => false, 'UseParsoidParser' => true, 'SiteLookup' => [ ], ], 'type' => [ 'ConfigRegistry' => 'object', 'AssumeProxiesUseDefaultProtocolPorts' => 'boolean', 'ForceHTTPS' => 'boolean', 'ExtensionDirectory' => [ 'string', 'null', ], 'StyleDirectory' => [ 'string', 'null', ], 'UploadDirectory' => [ 'string', 'boolean', 'null', ], 'Logos' => [ 'object', 'boolean', ], 'ReferrerPolicy' => [ 'array', 'string', 'boolean', ], 'ActionPaths' => 'object', 'MainPageIsDomainRoot' => 'boolean', 'ImgAuthUrlPathMap' => 'object', 'LocalFileRepo' => 'object', 'ForeignFileRepos' => 'array', 'UseSharedUploads' => 'boolean', 'SharedUploadDirectory' => [ 'string', 'null', ], 'SharedUploadPath' => [ 'string', 'null', ], 'HashedSharedUploadDirectory' => 'boolean', 'FetchCommonsDescriptions' => 'boolean', 'SharedUploadDBname' => [ 'boolean', 'string', ], 'SharedUploadDBprefix' => 'string', 'SharedUploadDBschema' => [ 'string', 'null', ], 'CacheSharedUploads' => 'boolean', 'ForeignUploadTargets' => 'array', 'UploadDialog' => 'object', 'FileBackends' => 'object', 'LockManagers' => 'array', 'DefaultLockManager' => [ 'string', 'null', ], 'CopyUploadsDomains' => 'array', 'CopyUploadTimeout' => [ 'boolean', 'integer', ], 'SharedThumbnailScriptPath' => [ 'string', 'boolean', ], 'HashedUploadDirectory' => 'boolean', 'CSPUploadEntryPoint' => 'boolean', 'FileExtensions' => 'array', 'ProhibitedFileExtensions' => 'array', 'MimeTypeExclusions' => 'array', 'TrustedMediaFormats' => 'array', 'MediaHandlers' => 'object', 'NativeImageLazyLoading' => 'boolean', 'ParserTestMediaHandlers' => 'object', 'MaxInterlacingAreas' => 'object', 'SVGConverters' => 'object', 'SVGNativeRendering' => [ 'string', 'boolean', ], 'MaxImageArea' => [ 'string', 'integer', 'boolean', ], 'TiffThumbnailType' => 'array', 'GenerateThumbnailOnParse' => 'boolean', 'EnableAutoRotation' => [ 'boolean', 'null', ], 'Antivirus' => [ 'string', 'null', ], 'AntivirusSetup' => 'object', 'MimeDetectorCommand' => [ 'string', 'null', ], 'XMLMimeTypes' => 'object', 'ImageLimits' => 'array', 'ThumbLimits' => 'array', 'ThumbnailNamespaces' => 'array', 'ThumbnailSteps' => [ 'array', 'null', ], 'ThumbnailBuckets' => [ 'array', 'null', ], 'UploadThumbnailRenderMap' => 'object', 'GalleryOptions' => 'object', 'DjvuDump' => [ 'string', 'null', ], 'DjvuRenderer' => [ 'string', 'null', ], 'DjvuTxt' => [ 'string', 'null', ], 'DjvuPostProcessor' => [ 'string', 'null', ], 'SMTP' => [ 'boolean', 'object', ], 'EnotifFromEditor' => 'boolean', 'EmailConfirmationBanner' => 'boolean', 'EnotifRevealEditorAddress' => 'boolean', 'UsersNotifiedOnAllChanges' => 'object', 'DBmwschema' => [ 'string', 'null', ], 'SharedTables' => 'array', 'DBservers' => [ 'boolean', 'array', ], 'LBFactoryConf' => 'object', 'LocalDatabases' => 'array', 'VirtualDomainsMapping' => 'object', 'RemoteVirtualDomainsMapping' => 'object', 'FileSchemaMigrationStage' => 'integer', 'ExternalLinksDomainGaps' => 'object', 'ContentHandlers' => 'object', 'NamespaceContentModels' => 'object', 'TextModelsToParse' => 'array', 'ExternalStores' => 'array', 'ExternalServers' => 'object', 'DefaultExternalStore' => [ 'array', 'boolean', ], 'RevisionCacheExpiry' => 'integer', 'PageLanguageUseDB' => 'boolean', 'DiffEngine' => [ 'string', 'null', ], 'ExternalDiffEngine' => [ 'string', 'boolean', ], 'Wikidiff2Options' => 'object', 'RequestTimeLimit' => [ 'integer', 'null', ], 'CriticalSectionTimeLimit' => 'number', 'PoolCounterConf' => [ 'object', 'null', ], 'PoolCountClientConf' => 'object', 'MaxUserDBWriteDuration' => [ 'integer', 'boolean', ], 'MaxJobDBWriteDuration' => [ 'integer', 'boolean', ], 'MultiShardSiteStats' => 'boolean', 'ObjectCaches' => 'object', 'WANObjectCache' => 'object', 'MicroStashType' => [ 'string', 'integer', ], 'ParsoidCacheConfig' => 'object', 'ParsoidSelectiveUpdateSampleRate' => 'integer', 'SplitParsoidParserCache' => 'boolean', 'ParserCacheFilterConfig' => 'object', 'ChronologyProtectorSecret' => 'string', 'SuspiciousIpExpiry' => [ 'integer', 'boolean', ], 'MemCachedServers' => 'array', 'LocalisationCacheConf' => 'object', 'ExtensionInfoMTime' => [ 'integer', 'boolean', ], 'CdnServers' => 'object', 'CdnServersNoPurge' => 'object', 'HTCPRouting' => 'object', 'GrammarForms' => 'object', 'ExtraInterlanguageLinkPrefixes' => 'array', 'InterlanguageLinkCodeMap' => 'object', 'ExtraLanguageNames' => 'object', 'ExtraLanguageCodes' => 'object', 'DummyLanguageCodes' => 'object', 'DisabledVariants' => 'object', 'ForceUIMsgAsContentMsg' => 'object', 'RawHtmlMessages' => 'array', 'OverrideUcfirstCharacters' => 'object', 'XhtmlNamespaces' => 'object', 'BrowserFormatDetection' => 'string', 'SkinMetaTags' => 'object', 'SkipSkins' => 'object', 'FragmentMode' => 'array', 'FooterIcons' => 'object', 'PageShareSkinsEnabled' => 'array', 'InterwikiLogoOverride' => 'array', 'ResourceModules' => 'object', 'ResourceModuleSkinStyles' => 'object', 'ResourceLoaderSources' => 'object', 'ResourceLoaderMaxage' => 'object', 'ResourceLoaderMaxQueryLength' => [ 'integer', 'boolean', ], 'CanonicalNamespaceNames' => 'object', 'ExtraNamespaces' => 'object', 'ExtraGenderNamespaces' => 'object', 'NamespaceAliases' => 'object', 'CapitalLinkOverrides' => 'object', 'NamespacesWithSubpages' => 'object', 'NamespacesWithoutAutoSummaries' => 'array', 'ContentNamespaces' => 'array', 'ShortPagesNamespaceExclusions' => 'array', 'ExtraSignatureNamespaces' => 'array', 'InvalidRedirectTargets' => 'array', 'LocalInterwikis' => 'array', 'InterwikiCache' => [ 'boolean', 'object', ], 'SiteTypes' => 'object', 'UrlProtocols' => 'array', 'TidyConfig' => 'object', 'ParsoidSettings' => 'object', 'ParsoidExperimentalParserFunctionOutput' => 'boolean', 'NoFollowNsExceptions' => 'array', 'NoFollowDomainExceptions' => 'array', 'ExternalLinksIgnoreDomains' => 'array', 'EnableMagicLinks' => 'object', 'ManualRevertSearchRadius' => 'integer', 'RevertedTagMaxDepth' => 'integer', 'CentralIdLookupProviders' => 'object', 'CentralIdLookupProvider' => 'string', 'UserRegistrationProviders' => 'object', 'PasswordPolicy' => 'object', 'AuthManagerConfig' => [ 'object', 'null', ], 'AuthManagerAutoConfig' => 'object', 'RememberMe' => 'string', 'ReauthenticateTime' => 'object', 'ChangeCredentialsBlacklist' => 'array', 'RemoveCredentialsBlacklist' => 'array', 'PasswordConfig' => 'object', 'PasswordResetRoutes' => 'object', 'SignatureAllowedLintErrors' => 'array', 'ReservedUsernames' => 'array', 'DefaultUserOptions' => 'object', 'ConditionalUserOptions' => 'object', 'HiddenPrefs' => 'array', 'UserJsPrefLimit' => 'integer', 'AuthenticationTokenVersion' => [ 'string', 'null', ], 'SessionProviders' => 'object', 'AutoCreateTempUser' => 'object', 'AutoblockExemptions' => 'array', 'BlockCIDRLimit' => 'object', 'EnableMultiBlocks' => 'boolean', 'GroupPermissions' => 'object', 'PrivilegedGroups' => 'array', 'RevokePermissions' => 'object', 'GroupInheritsPermissions' => 'object', 'ImplicitGroups' => 'array', 'GroupsAddToSelf' => 'object', 'GroupsRemoveFromSelf' => 'object', 'RestrictedGroups' => 'object', 'UserRequirementsPrivateConditions' => 'array', 'RestrictionTypes' => 'array', 'RestrictionLevels' => 'array', 'CascadingRestrictionLevels' => 'array', 'SemiprotectedRestrictionLevels' => 'array', 'NamespaceProtection' => 'object', 'RestrictUserPageEditing' => 'boolean', 'NonincludableNamespaces' => 'object', 'Autopromote' => 'object', 'AutopromoteOnce' => 'object', 'AutopromoteOnceRCExcludedGroups' => 'array', 'AddGroups' => 'object', 'RemoveGroups' => 'object', 'AvailableRights' => 'array', 'ImplicitRights' => 'array', 'AccountCreationThrottle' => [ 'integer', 'array', ], 'TempAccountCreationThrottle' => 'array', 'TempAccountNameAcquisitionThrottle' => 'array', 'SpamRegex' => 'array', 'SummarySpamRegex' => 'array', 'DnsBlacklistUrls' => 'array', 'ProxyList' => [ 'string', 'array', ], 'ProxyWhitelist' => 'array', 'SoftBlockRanges' => 'array', 'RateLimits' => 'object', 'RateLimitsExcludedIPs' => 'array', 'ExternalQuerySources' => 'object', 'PasswordAttemptThrottle' => 'array', 'GrantPermissions' => 'object', 'GrantPermissionGroups' => 'object', 'GrantRiskGroups' => 'object', 'EnableBotPasswords' => 'boolean', 'BotPasswordsCluster' => [ 'string', 'boolean', ], 'BotPasswordsDatabase' => [ 'string', 'boolean', ], 'BotPasswordsLimit' => 'integer', 'ReauthenticateForActions' => 'object', 'CSPHeader' => [ 'boolean', 'object', ], 'CSPReportOnlyHeader' => [ 'boolean', 'object', ], 'CSPUseReportURIDirective' => [ 'boolean', 'object', ], 'CSPFalsePositiveUrls' => 'object', 'AllowCrossOrigin' => 'boolean', 'RestAllowCrossOriginCookieAuth' => 'boolean', 'CookieSameSite' => [ 'string', 'null', ], 'CacheVaryCookies' => 'array', 'DeviceBoundSessions' => 'boolean', 'DeviceBoundSessionsReportOnly' => 'boolean', 'DeviceBoundSessionCookieName' => 'string', 'DeviceBoundSessionCredentialTTL' => 'integer', 'DeviceBoundSessionChallengeTTL' => 'integer', 'DeviceBoundSessionBindingTTL' => 'integer', 'DeviceBoundSessionScopeExcludes' => 'array', 'TrxProfilerLimits' => 'object', 'DebugLogGroups' => 'object', 'MWLoggerDefaultSpi' => 'object', 'Profiler' => 'object', 'StatsTarget' => [ 'string', 'null', ], 'StatsFormat' => [ 'string', 'null', ], 'StatsPrefix' => 'string', 'OpenTelemetryConfig' => [ 'object', 'null', ], 'OpenSearchTemplates' => 'object', 'NamespacesToBeSearchedDefault' => 'object', 'SitemapNamespaces' => [ 'boolean', 'array', ], 'SitemapNamespacesPriorities' => [ 'boolean', 'object', ], 'SitemapApiConfig' => 'object', 'SpecialSearchFormOptions' => 'object', 'SearchMatchRedirectPreference' => 'boolean', 'SearchRunSuggestedQuery' => 'boolean', 'PreviewOnOpenNamespaces' => 'object', 'ReadOnlyWatchedItemStore' => 'boolean', 'GitRepositoryViewers' => 'object', 'InstallerInitialPages' => 'array', 'RCLinkLimits' => 'array', 'RCLinkDays' => 'array', 'RCFeeds' => 'object', 'OverrideSiteFeed' => 'object', 'FeedClasses' => 'object', 'AdvertisedFeedTypes' => 'array', 'SoftwareTags' => 'object', 'RestrictedTagViewRights' => 'object', 'RecentChangesFlags' => 'object', 'WatchlistExpiry' => 'boolean', 'EnableWatchstarPopover' => 'boolean', 'EnableWatchlistLabels' => 'boolean', 'WatchlistLabelsMaxPerUser' => 'integer', 'WatchlistPurgeRate' => 'number', 'WatchlistExpiryMaxDuration' => [ 'string', 'null', ], 'EnableChangesListQueryPartitioning' => 'boolean', 'ImportSources' => 'object', 'ExtensionFunctions' => 'array', 'ExtensionMessagesFiles' => 'object', 'MessagesDirs' => 'object', 'TranslationAliasesDirs' => 'object', 'ExtensionEntryPointListFiles' => 'object', 'ValidSkinNames' => 'object', 'SpecialPages' => 'object', 'ExtensionCredits' => 'object', 'Hooks' => 'object', 'ServiceWiringFiles' => 'array', 'JobClasses' => 'object', 'JobTypesExcludedFromDefaultQueue' => 'array', 'JobBackoffThrottling' => 'object', 'JobTypeConf' => 'object', 'SpecialPageCacheUpdates' => 'object', 'PagePropLinkInvalidations' => 'object', 'TempCategoryCollations' => 'array', 'SortedCategories' => 'boolean', 'TrackingCategories' => 'array', 'LogTypes' => 'array', 'LogRestrictions' => 'object', 'FilterLogTypes' => 'object', 'LogNames' => 'object', 'LogHeaders' => 'object', 'LogActions' => 'object', 'LogActionsHandlers' => 'object', 'ActionFilteredLogs' => 'object', 'WatchUserPageOnAccountCreation' => 'boolean', 'RangeContributionsCIDRLimit' => 'object', 'Actions' => 'object', 'NamespaceRobotPolicies' => 'object', 'ArticleRobotPolicies' => 'object', 'ExemptFromUserRobotsControl' => [ 'array', 'null', ], 'APIModules' => 'object', 'APIFormatModules' => 'object', 'APIMetaModules' => 'object', 'APIPropModules' => 'object', 'APIListModules' => 'object', 'APIUselessQueryPages' => 'array', 'CrossSiteAJAXdomains' => 'object', 'CrossSiteAJAXdomainExceptions' => 'object', 'AllowedCorsHeaders' => 'array', 'RestAPIAdditionalRouteFiles' => 'array', 'RestLocalModuleTestBaseUrl' => [ 'string', 'null', ], 'RestModuleOverrides' => 'object', 'RestExternalModules' => 'object', 'RestTermsOfServiceUrl' => [ 'string', 'null', ], 'ShellRestrictionMethod' => [ 'string', 'boolean', ], 'ShellboxUrls' => 'object', 'ShellboxSecretKey' => [ 'string', 'null', ], 'ShellboxShell' => [ 'string', 'null', ], 'HTTPTimeout' => 'number', 'HTTPConnectTimeout' => 'number', 'HTTPMaxTimeout' => 'number', 'HTTPMaxConnectTimeout' => 'number', 'HTTPUserAgentContact' => [ 'string', 'boolean', ], 'LocalVirtualHosts' => 'object', 'LocalHTTPProxy' => [ 'string', 'boolean', ], 'GenerateReqIDFormat' => 'string', 'EventRelayerConfig' => 'object', 'Pingback' => 'boolean', 'OriginTrials' => 'array', 'ReportToExpiry' => 'integer', 'ReportToEndpoints' => 'array', 'FeaturePolicyReportOnly' => 'array', 'SkinsPreferred' => 'array', 'SpecialContributeSkinsEnabled' => 'array', 'SpecialContributeNewPageTarget' => [ 'string', 'null', ], 'EnableEditRecovery' => 'boolean', 'EditRecoveryExpiry' => 'integer', 'UseCodexSpecialBlock' => 'boolean', 'ShowLogoutConfirmation' => 'boolean', 'EnableProtectionIndicators' => 'boolean', 'OutputPipelineStages' => 'object', 'FeatureShutdown' => 'array', 'UseLeximorph' => 'boolean', 'UsePostprocCacheLegacy' => 'boolean', 'UsePostprocCacheParsoid' => 'boolean', 'ParserOptionsLogUnsafeSampleRate' => 'integer', 'ReturnExperimentalPFragmentTypes' => 'array', 'UseParsoidLinksUpdate' => [ 'boolean', 'null', ], 'UseParsoidMessages' => [ 'boolean', 'null', ], 'UseParsoidParser' => 'boolean', 'SiteLookup' => 'object', ], 'mergeStrategy' => [ 'TiffThumbnailType' => 'replace', 'LBFactoryConf' => 'replace', 'InterwikiCache' => 'replace', 'PasswordPolicy' => 'array_replace_recursive', 'AuthManagerAutoConfig' => 'array_plus_2d', 'GroupPermissions' => 'array_plus_2d', 'RevokePermissions' => 'array_plus_2d', 'AddGroups' => 'array_merge_recursive', 'RemoveGroups' => 'array_merge_recursive', 'RateLimits' => 'array_plus_2d', 'GrantPermissions' => 'array_plus_2d', 'MWLoggerDefaultSpi' => 'replace', 'Profiler' => 'replace', 'Hooks' => 'array_merge_recursive', 'RestModuleOverrides' => 'array_replace_recursive', 'RestExternalModules' => 'array_replace_recursive', ], 'dynamicDefault' => [ 'UsePathInfo' => [ 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultUsePathInfo', ], ], 'Script' => [ 'use' => [ 'ScriptPath', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultScript', ], ], 'LoadScript' => [ 'use' => [ 'ScriptPath', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultLoadScript', ], ], 'RestPath' => [ 'use' => [ 'ScriptPath', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultRestPath', ], ], 'StylePath' => [ 'use' => [ 'ResourceBasePath', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultStylePath', ], ], 'LocalStylePath' => [ 'use' => [ 'ScriptPath', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultLocalStylePath', ], ], 'ExtensionAssetsPath' => [ 'use' => [ 'ResourceBasePath', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultExtensionAssetsPath', ], ], 'ArticlePath' => [ 'use' => [ 'Script', 'UsePathInfo', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultArticlePath', ], ], 'UploadPath' => [ 'use' => [ 'ScriptPath', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultUploadPath', ], ], 'FileCacheDirectory' => [ 'use' => [ 'UploadDirectory', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultFileCacheDirectory', ], ], 'Logo' => [ 'use' => [ 'ResourceBasePath', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultLogo', ], ], 'DeletedDirectory' => [ 'use' => [ 'UploadDirectory', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultDeletedDirectory', ], ], 'ShowEXIF' => [ 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultShowEXIF', ], ], 'SharedPrefix' => [ 'use' => [ 'DBprefix', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultSharedPrefix', ], ], 'SharedSchema' => [ 'use' => [ 'DBmwschema', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultSharedSchema', ], ], 'DBerrorLogTZ' => [ 'use' => [ 'Localtimezone', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultDBerrorLogTZ', ], ], 'Localtimezone' => [ 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultLocaltimezone', ], ], 'LocalTZoffset' => [ 'use' => [ 'Localtimezone', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultLocalTZoffset', ], ], 'ResourceBasePath' => [ 'use' => [ 'ScriptPath', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultResourceBasePath', ], ], 'MetaNamespace' => [ 'use' => [ 'Sitename', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultMetaNamespace', ], ], 'CookieSecure' => [ 'use' => [ 'ForceHTTPS', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultCookieSecure', ], ], 'CookiePrefix' => [ 'use' => [ 'SharedDB', 'SharedPrefix', 'SharedTables', 'DBname', 'DBprefix', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultCookiePrefix', ], ], 'ReadOnlyFile' => [ 'use' => [ 'UploadDirectory', ], 'callback' => [ 'MediaWiki\\MainConfigSchema', 'getDefaultReadOnlyFile', ], ], ], ], 'config-schema' => [ 'UploadStashScalerBaseUrl' => [ 'deprecated' => 'since 1.36 Use thumbProxyUrl in $wgLocalFileRepo', ], 'IllegalFileChars' => [ 'deprecated' => 'since 1.41; no longer customizable', ], 'ThumbnailNamespaces' => [ 'items' => [ 'type' => 'integer', ], ], 'LocalDatabases' => [ 'items' => [ 'type' => 'string', ], ], 'ParserCacheFilterConfig' => [ 'additionalProperties' => [ 'type' => 'object', 'description' => 'A map of namespace IDs to filter definitions.', 'additionalProperties' => [ 'type' => 'object', 'description' => 'A map of filter names to values.', 'properties' => [ 'minCpuTime' => [ 'type' => 'number', ], ], ], ], ], 'RawHtmlMessages' => [ 'items' => [ 'type' => 'string', ], ], 'InterwikiLogoOverride' => [ 'items' => [ 'type' => 'string', ], ], 'LegalTitleChars' => [ 'deprecated' => 'since 1.41; use Extension:TitleBlacklist to customize', ], 'ReauthenticateTime' => [ 'additionalProperties' => [ 'type' => [ 'integer', 'array', ], ], ], 'ChangeCredentialsBlacklist' => [ 'items' => [ 'type' => 'string', ], ], 'RemoveCredentialsBlacklist' => [ 'items' => [ 'type' => 'string', ], ], 'GroupPermissions' => [ 'additionalProperties' => [ 'type' => 'object', 'additionalProperties' => [ 'type' => 'boolean', ], ], ], 'GroupInheritsPermissions' => [ 'additionalProperties' => [ 'type' => 'string', ], ], 'AvailableRights' => [ 'items' => [ 'type' => 'string', ], ], 'ImplicitRights' => [ 'items' => [ 'type' => 'string', ], ], 'SoftBlockRanges' => [ 'items' => [ 'type' => 'string', ], ], 'ExternalQuerySources' => [ 'additionalProperties' => [ 'type' => 'object', 'properties' => [ 'enabled' => [ 'type' => 'boolean', 'default' => false, ], 'url' => [ 'type' => 'string', 'format' => 'uri', ], 'timeout' => [ 'type' => 'integer', 'default' => 10, ], ], 'required' => [ 'enabled', 'url', ], 'additionalProperties' => false, ], ], 'GrantPermissions' => [ 'additionalProperties' => [ 'type' => 'object', 'additionalProperties' => [ 'type' => 'boolean', ], ], ], 'GrantPermissionGroups' => [ 'additionalProperties' => [ 'type' => 'string', ], ], 'SitemapNamespacesPriorities' => [ 'deprecated' => 'since 1.45 and ignored', ], 'SitemapApiConfig' => [ 'additionalProperties' => [ 'enabled' => [ 'type' => 'bool', ], 'sitemapsPerIndex' => [ 'type' => 'int', ], 'pagesPerSitemap' => [ 'type' => 'int', ], 'expiry' => [ 'type' => 'int', ], 'skipRedirects' => [ 'type' => 'bool', ], ], ], 'SoftwareTags' => [ 'additionalProperties' => [ 'type' => 'boolean', ], ], 'UseCopyrightUpload' => [ 'deprecated' => 'since 1.47 This feature is being removed.', ], 'JobBackoffThrottling' => [ 'additionalProperties' => [ 'type' => 'number', ], ], 'JobTypeConf' => [ 'additionalProperties' => [ 'type' => 'object', 'properties' => [ 'class' => [ 'type' => 'string', ], 'order' => [ 'type' => 'string', ], 'claimTTL' => [ 'type' => 'integer', ], ], ], ], 'TrackingCategories' => [ 'deprecated' => 'since 1.25 Extensions should now register tracking categories using the new extension registration system.', ], 'RangeContributionsCIDRLimit' => [ 'additionalProperties' => [ 'type' => 'integer', ], ], 'RestModuleOverrides' => [ 'additionalProperties' => [ 'type' => 'object', 'properties' => [ 'availability' => [ 'type' => 'string', ], 'groups' => [ 'type' => 'array', ], ], ], ], 'RestExternalModules' => [ 'additionalProperties' => [ 'type' => 'object', 'properties' => [ 'info' => [ 'type' => 'object', 'properties' => [ 'version' => [ 'type' => 'string', ], 'title' => [ 'type' => 'string', ], 'x-i18n-title' => [ 'type' => 'string', ], 'description' => [ 'type' => 'string', ], 'x-i18n-description' => [ 'type' => 'string', ], ], 'required' => [ 'version', ], ], 'base' => [ 'type' => 'string', 'format' => 'uri', ], 'spec' => [ 'type' => 'string', 'format' => 'uri', ], ], 'required' => [ 'info', 'base', 'spec', ], ], ], 'ShellboxUrls' => [ 'additionalProperties' => [ 'type' => [ 'string', 'boolean', 'null', ], ], ], ], 'obsolete-config' => [ 'MangleFlashPolicy' => 'Since 1.39; no longer has any effect.', 'EnableOpenSearchSuggest' => 'Since 1.35, no longer used', 'AutoloadAttemptLowercase' => 'Since 1.40; no longer has any effect.', ],]
Represents a block that may prevent users from performing specific operations.
Definition Block.php:32
Interface for objects which can provide a MediaWiki context on request.
Represents the target of a wiki link.
Service for resolving a wiki page redirect.
Interface for temporary user creation config and name matching.
Service for looking up UserIdentity.
Interface for objects representing user identity.
getId( $wikiId=self::LOCAL)