MediaWiki master
ChangesListQuery.php
Go to the documentation of this file.
1<?php
2
4
5use InvalidArgumentException;
6use LogicException;
31use Psr\Log\LoggerInterface;
32use stdClass;
39use Wikimedia\Timestamp\ConvertibleTimestamp;
40use Wikimedia\Timestamp\TimestampFormat as TS;
41use function array_key_exists;
42
50 public const CONSTRUCTOR_OPTIONS = [
56 ...ExperienceCondition::CONSTRUCTOR_OPTIONS
57 ];
58
59 public const LINKS_FROM = 'from';
60 public const LINKS_TO = 'to';
61
62 private const LINK_TABLE_PREFIXES = [
63 'pagelinks' => 'pl',
64 'templatelinks' => 'tl',
65 'categorylinks' => 'cl',
66 'imagelinks' => 'il'
67 ];
68
69 private const LINK_TABLE_VIRTUAL_DOMAINS = [
70 'pagelinks' => PageLinksTable::VIRTUAL_DOMAIN,
71 'templatelinks' => TemplateLinksTable::VIRTUAL_DOMAIN,
72 'categorylinks' => CategoryLinksTable::VIRTUAL_DOMAIN,
73 'imagelinks' => ImageLinksTable::VIRTUAL_DOMAIN
74 ];
75
77 public const PARTITION_THRESHOLD = 10000;
78
79 public const SORT_TIMESTAMP_DESC = 'timestamp-desc';
80 public const SORT_TIMESTAMP_ASC = 'timestamp-asc';
81
82 private int|float $rcMaxAge;
83 private bool $enablePartitioning;
84 private bool $forcePartitioning = false;
85 private array $virtualDomainsMapping;
86
87 private array $densityTunables = [
88 self::DENSITY_LINKS => 0.1,
89 self::DENSITY_WATCHLIST => 0.1,
90 self::DENSITY_USER => 0.1,
91 self::DENSITY_CHANGE_TAG_THRESHOLD => 0.5,
92 ];
93
95 private $filterModules;
96
98 private $joinModules;
99
101 private $highlights = [];
102
104 private $fields = [];
106 private $conds = [];
107
109 private $linkDirection = null;
111 private $linkTables = [];
113 private $linkTarget = null;
114
116 private $preparedEmulatedUnion = false;
117
122 private $prepareCallbacks = [];
123
125 private $minTimestamp = null;
126
128 private $startTimestamp = null;
130 private $startId = null;
132 private $endTimestamp = null;
134 private $endId = null;
136 private $sort = self::SORT_TIMESTAMP_DESC;
137
139 private ?int $limit = null;
140
142 private $density = 1;
143
148 private $joinOrderHint = self::JOIN_ORDER_RECENTCHANGES;
149
151 private ?Authority $audience = null;
152
154 private $excludeDeletedAction = false;
156 private $excludeDeletedUser = false;
157
159 private $maxExecutionTime = null;
160
162 private $forceEmptySet = false;
163
165 private $distinct = false;
166
168 private ?string $caller = null;
169
171 private $legacyMutators = [];
173 private $sqbMutators = [];
174
175 public function __construct(
176 private ServiceOptions $config,
177 private RecentChangeLookup $recentChangeLookup,
178 private WatchedItemStoreInterface $watchedItemStore,
179 private TempUserConfig $tempUserConfig,
180 private UserFactory $userFactory,
181 private LinkTargetLookup $linkTargetLookup,
182 private ChangeTagsStore $changeTagsStore,
183 private StatsFactory $statsFactory,
184 private NameTableStore $slotRoleStore,
185 private LoggerInterface $logger,
186 private IReadableDatabase $db,
187 private TableStatsProvider $rcStats,
188 ) {
189 $this->filterModules = [
190 'experience' => new ExperienceCondition(
191 $config,
192 $this->tempUserConfig,
193 $this->userFactory,
194 ),
195 'user' => new UserCondition(),
196 'named' => new NamedCondition( $this->tempUserConfig ),
197 'bot' => new BooleanFieldCondition( 'rc_bot' ),
198 'minor' => new BooleanFieldCondition( 'rc_minor' ),
199 'redirect' => new BooleanJoinFieldCondition( 'page_is_redirect', 'page' ),
200 'revisionType' => new RevisionTypeCondition(),
201 'source' => new EnumFieldCondition(
202 'rc_source',
203 $this->recentChangeLookup->getAllSources()
204 ),
205 'logType' => new FieldEqualityCondition( 'rc_log_type', true ),
206 'patrolled' => new EnumFieldCondition(
207 'rc_patrolled',
208 [
212 ]
213 ),
214 'watched' => new WatchedCondition(
215 (bool)$config->get( MainConfigNames::WatchlistExpiry )
216 ),
217 'seen' => new SeenCondition(
218 $this->watchedItemStore
219 ),
220 'watchlistLabel' => new WatchlistLabelCondition(),
221 'namespace' => new FieldEqualityCondition( 'rc_namespace' ),
222 'title' => new TitleCondition(),
223 'subpageof' => new SubpageOfCondition(),
224 ];
225
226 // ChangeTagsCondition consumes the density heuristic so it has to
227 // be prepared after the other modules. Putting it late in the list
228 // serves that purpose.
229 $this->filterModules['changeTags'] = new ChangeTagsCondition(
230 $this->changeTagsStore,
231 $this->rcStats,
232 $this->logger,
233 (bool)$config->get( MainConfigNames::MiserMode ),
234 );
235
236 $this->joinModules = [
237 'actor' => new BasicJoin( 'actor', 'recentchanges_actor', 'actor_id=rc_actor' ),
238 'change_tag' => new BasicJoin(
239 'change_tag',
240 'changetagdisplay',
241 'changetagdisplay.ct_rc_id=rc_id'
242 ),
243 'comment' => new BasicJoin( 'comment', 'recentchanges_comment', 'comment_id=rc_comment_id' ),
244 'page' => new BasicJoin( 'page', '', 'page_id=rc_cur_id' ),
245 'revision' => new BasicJoin( 'revision', '', 'rev_id=rc_this_oldid' ),
246 'slots' => new SlotsJoin(),
247 'user' => new BasicJoin( 'user', '', 'user_id=actor_user', 'actor' ),
248 'watchlist' => new WatchlistJoin(),
249 'watchlist_expiry' => new BasicJoin( 'watchlist_expiry', '', 'we_item=wl_id', 'watchlist' ),
250 'watchlist_label_member' => new BasicJoin(
251 'watchlist_label_member',
252 '',
253 'wlm_item=wl_id',
254 [ 'watchlist' ]
255 ),
256 ];
257
258 $this->rcMaxAge = (int)$config->get( MainConfigNames::RCMaxAge );
260 $this->virtualDomainsMapping = $config->get( MainConfigNames::VirtualDomainsMapping );
261 }
262
289 public function applyAction( string $verb, string $moduleName, $value = null ) {
290 $module = $this->getFilter( $moduleName );
291 switch ( $verb ) {
292 case 'require':
293 $module->require( $value );
294 break;
295 case 'exclude':
296 $module->exclude( $value );
297 break;
298 default:
299 throw new InvalidArgumentException(
300 "Unknown filter action verb: \"$verb\"" );
301 }
302 return $this;
303 }
304
311 public function requireNamespaces( array $namespaces ) {
312 return $this->applyArrayAction( 'require', 'namespace', $namespaces );
313 }
314
321 public function excludeNamespaces( array $namespaces ) {
322 return $this->applyArrayAction( 'exclude', 'namespace', $namespaces );
323 }
324
333 private function applyArrayAction( string $verb, string $moduleName, array $values ) {
334 foreach ( $values as $value ) {
335 $this->applyAction( $verb, $moduleName, $value );
336 }
337 return $this;
338 }
339
346 public function requireSubpageOf( LinkTarget|PageReference $page ) {
347 $this->getSubpageOfCondition()->require( $page );
348 return $this;
349 }
350
357 public function requireTitle( LinkTarget|PageReference $title ) {
358 $this->getTitleCondition()->require( $title );
359 return $this;
360 }
361
369 public function requireWatched( $watchTypes = [ 'watchedold', 'watchednew' ] ) {
370 return $this->applyArrayAction( 'require', 'watched', $watchTypes );
371 }
372
381 public function requireWatchlistLabelIds( array $labelIds ) {
382 return $this->applyArrayAction( 'require', 'watchlistLabel', $labelIds );
383 }
384
393 public function excludeWatchlistLabelIds( array $labelIds ) {
394 return $this->applyArrayAction( 'exclude', 'watchlistLabel', $labelIds );
395 }
396
406 public function requireLink( string $direction, array $tables, PageIdentity $page ) {
407 if ( count( $tables ) == 0 ) {
408 throw new InvalidArgumentException( 'Need at least one link table' );
409 }
410 $unknownTables = array_diff( $tables, array_keys( self::LINK_TABLE_PREFIXES ) );
411 if ( $unknownTables ) {
412 throw new InvalidArgumentException( 'Unknown link table(s): ' .
413 implode( ', ', $unknownTables ) );
414 }
415
416 $this->linkDirection = $direction;
417 $this->linkTables = $tables;
418 $this->linkTarget = $page;
419 return $this;
420 }
421
428 public function requireSources( array $sources ): self {
429 return $this->applyArrayAction( 'require', 'source', $sources );
430 }
431
438 public function requireUser( UserIdentity $user ): self {
439 $this->getUserFilter()->require( $user );
440 return $this;
441 }
442
449 public function excludeUser( UserIdentity $user ): self {
450 $this->getUserFilter()->exclude( $user );
451 return $this;
452 }
453
460 public function requirePatrolled( $value ): self {
461 $this->getPatrolledFilter()->require( $value );
462 return $this;
463 }
464
471 public function requireChangeTags( $tagNames ): self {
472 return $this->applyArrayAction( 'require', 'changeTags', $tagNames );
473 }
474
481 public function excludeChangeTags( $tagNames ): self {
482 return $this->applyArrayAction( 'exclude', 'changeTags', $tagNames );
483 }
484
491 public function requireLatest(): self {
492 $this->getRevisionTypeFilter()->require( 'latest' );
493 return $this;
494 }
495
502 public function excludeOldRevisions(): self {
503 $this->getRevisionTypeFilter()->exclude( 'old' );
504 return $this;
505 }
506
513 public function requireSlotChanged( string $role ): self {
514 try {
515 $roleId = $this->slotRoleStore->getId( $role );
516 } catch ( NameTableAccessException ) {
517 // No revisions changed this role yet
518 $this->forceEmptySet();
519 return $this;
520 }
521
522 $this->prepareCallbacks['slotChanged'] = function () use ( $roleId ) {
523 $slotsJoin = $this->getSlotsJoinModule();
524 $slotsJoin->setRoleId( $roleId );
525 $slotsJoin->forConds( $this )
526 ->left();
527
528 $slotsJoin->parentAlias()
529 ->forConds()
530 ->left();
531
532 // Detecting whether the slot has been touched as follows:
533 // 1. if slot_origin=slot_revision_id then the slot has been newly created or edited
534 // with this revision
535 // 2. otherwise if the content of a slot is different to the content of its parent slot,
536 // then the content of the slot has been changed in this revision
537 // (probably by a revert)
538 $this->where( $this->db->orExpr( [
539 new RawSQLExpression( 'slot.slot_origin = slot.slot_revision_id' ),
540 new RawSQLExpression( 'slot.slot_content_id != parent_slot.slot_content_id' ),
541 $this->db->expr( 'slot.slot_content_id', '=', null )->and( 'parent_slot.slot_content_id', '!=', null ),
542 $this->db->expr( 'slot.slot_content_id', '!=', null )->and( 'parent_slot.slot_content_id', '=', null ),
543 ] ) );
544 };
545 return $this;
546 }
547
554 public function excludeDeletedLogAction(): self {
555 $this->excludeDeletedAction = true;
556 return $this;
557 }
558
565 public function allowDeletedLogAction(): self {
566 $this->excludeDeletedAction = false;
567 return $this;
568 }
569
576 public function excludeDeletedUser(): self {
577 $this->excludeDeletedUser = true;
578 return $this;
579 }
580
588 public function denseRcSizeThreshold( $threshold ): self {
589 $this->getChangeTagsFilter()->setDenseRcSizeThreshold( $threshold );
590 return $this;
591 }
592
599 public function audience( ?Authority $authority ) {
600 $this->audience = $authority;
601 return $this;
602 }
603
623 public function highlight( string $name, string $verb, string $moduleName, $value = null ) {
624 $module = $this->getFilter( $moduleName );
625 // Validate now while the responsible caller is in the stack
626 $value = $module->validateValue( $value );
627 $module->capture();
628 $sense = match ( $verb ) {
629 'require' => true,
630 'exclude' => false,
631 };
632 $this->highlights[$name][] = new ChangesListHighlight( $sense, $moduleName, $value );
633 return $this;
634 }
635
642 public function minTimestamp( $timestamp ) {
643 $this->minTimestamp = $timestamp;
644 return $this;
645 }
646
658 public function startAt( string $timestamp, ?int $id = null ): self {
659 $this->startTimestamp = $timestamp;
660 $this->startId = $id;
661 return $this;
662 }
663
675 public function endAt( string $timestamp, ?int $id = null ): self {
676 $this->endTimestamp = $timestamp;
677 $this->endId = $id;
678 return $this;
679 }
680
687 public function orderBy( $sort ) {
688 $this->sort = $sort;
689 return $this;
690 }
691
698 public function limit( int $limit ) {
699 $this->limit = $limit;
700 $this->getChangeTagsFilter()->setLimit( $limit );
701 return $this;
702 }
703
705 public function adjustDensity( $density ): self {
706 if ( is_string( $density ) ) {
707 if ( isset( $this->densityTunables[$density] ) ) {
708 $density = $this->densityTunables[$density];
709 } else {
710 throw new \InvalidArgumentException( "Unknown density \"$density\"" );
711 }
712 }
713 $this->density *= $density;
714 $this->getChangeTagsFilter()->setDensityThresholdReached(
715 $this->density >= $this->densityTunables[self::DENSITY_CHANGE_TAG_THRESHOLD]
716 );
717 return $this;
718 }
719
721 public function joinOrderHint( $order ): self {
722 $this->joinOrderHint = $order;
723 return $this;
724 }
725
732 public function forceEmptySet(): self {
733 $this->forceEmptySet = true;
734 return $this;
735 }
736
743 public function isEmptySet(): bool {
744 return $this->forceEmptySet;
745 }
746
754 public function maxExecutionTime( float|int|null $time ) {
755 $this->maxExecutionTime = $time;
756 return $this;
757 }
758
764 public function enablePartitioning(): self {
765 $this->enablePartitioning = true;
766 return $this;
767 }
768
774 public function forcePartitioning(): self {
775 $this->forcePartitioning = true;
776 return $this;
777 }
778
779 private function getWatchlistJoinModule(): WatchlistJoin {
780 return $this->joinModules['watchlist'];
781 }
782
783 private function getWatchlistExpiryJoinModule(): BasicJoin {
784 return $this->joinModules['watchlist_expiry'];
785 }
786
787 private function getSlotsJoinModule(): SlotsJoin {
788 return $this->joinModules['slots'];
789 }
790
791 private function getUserFilter(): UserCondition {
792 return $this->filterModules['user'];
793 }
794
795 private function getWatchedFilter(): WatchedCondition {
796 return $this->filterModules['watched'];
797 }
798
799 private function getSeenFilter(): SeenCondition {
800 return $this->filterModules['seen'];
801 }
802
803 private function getChangeTagsFilter(): ChangeTagsCondition {
804 return $this->filterModules['changeTags'];
805 }
806
807 private function getWatchlistLabelFilter(): WatchlistLabelCondition {
808 return $this->filterModules['watchlistLabel'];
809 }
810
811 private function getRedirectFilter(): BooleanJoinFieldCondition {
812 return $this->filterModules['redirect'];
813 }
814
815 private function getRevisionTypeFilter(): RevisionTypeCondition {
816 return $this->filterModules['revisionType'];
817 }
818
819 private function getPatrolledFilter(): EnumFieldCondition {
820 return $this->filterModules['patrolled'];
821 }
822
823 private function getTitleCondition(): TitleCondition {
824 return $this->filterModules['title'];
825 }
826
827 private function getSubpageOfCondition(): SubpageOfCondition {
828 return $this->filterModules['subpageof'];
829 }
830
837 public function watchlistUser( UserIdentity $user ) {
838 $this->getWatchlistJoinModule()->setUser( $user );
839 $this->getSeenFilter()->setUser( $user );
840 $this->getWatchedFilter()->setUser( $user );
841 return $this;
842 }
843
851 public function fields( $fields ): self {
852 $fields = is_array( $fields ) ? $fields : [ $fields ];
853 $this->fields = array_merge( $this->fields, $fields );
854 return $this;
855 }
856
858 public function rcUserFields(): QueryBackend {
859 $this->getJoin( 'actor' )->forFields( $this )->straight();
860 $this->fields['rc_user'] = 'recentchanges_actor.actor_user';
861 $this->fields['rc_user_text'] = 'recentchanges_actor.actor_name';
862 return $this;
863 }
864
870 public function addChangeTagSummaryField(): self {
871 $this->getChangeTagsFilter()->capture();
872 return $this;
873 }
874
880 public function addWatchlistLabelSummaryField(): self {
881 $this->getWatchlistLabelFilter()->capture();
882 return $this;
883 }
884
891 public function recentChangeFields() {
892 $this->prepareCallbacks['recentChangeFields'] = function () {
893 $this->fields( RecentChange::getQueryInfo()['fields'] );
894 $this->joinForFields( 'actor' )->straight();
895 $this->joinForFields( 'comment' )->straight();
896 };
897 return $this;
898 }
899
907 public function watchlistFields(
908 $fields = [ 'wl_user', 'wl_notificationtimestamp', 'we_expiry' ]
909 ) {
910 $this->prepareCallbacks['watchlistFields'] = function () use ( $fields ) {
911 $wlFields = array_diff( $fields, [ 'we_expiry' ] );
912 $weFields = array_intersect( $fields, [ 'we_expiry' ] );
913 if ( $wlFields ) {
914 $this->fields( $wlFields );
915 }
916 $this->joinForFields( 'watchlist' )->weakLeft();
917 if ( $weFields && $this->config->get( MainConfigNames::WatchlistExpiry ) ) {
918 $this->fields( $weFields );
919 $this->joinForFields( 'watchlist_expiry' )->weakLeft();
920 }
921 };
922 return $this;
923 }
924
931 public function sha1Fields() {
932 $this->sqbMutators['sha1Fields'] = $this->applySha1Fields( ... );
933 return $this;
934 }
935
936 private function applySha1Fields( SelectQueryBuilder $query ) {
937 $pairExpr = $this->db->buildGroupConcat(
938 $this->db->buildConcat( [ 'sr.role_name', $this->db->addQuotes( ':' ), 'c.content_sha1' ] ),
939 ','
940 );
941 $revSha1Subquery = $this->db->newSelectQueryBuilder()
942 ->select( [
943 'rev_id',
944 'rev_deleted',
945 'rev_slot_pairs' => $pairExpr,
946 ] )
947 ->from( 'revision' )
948 ->join( 'slots', 's', [ 'rev_id = s.slot_revision_id' ] )
949 ->join( 'content', 'c', [ 's.slot_content_id = c.content_id' ] )
950 ->join( 'slot_roles', 'sr', [ 's.slot_role_id = sr.role_id' ] )
951 ->groupBy( [ 'rev_id', 'rev_deleted' ] )
952 ->caller( __METHOD__ );
953
954 $query->leftJoin(
955 $revSha1Subquery,
956 'revsha1',
957 [ 'rc_this_oldid = revsha1.rev_id' ]
958 );
959 $query->fields( [
960 'rev_deleted' => 'revsha1.rev_deleted',
961 'rev_slot_pairs' => 'revsha1.rev_slot_pairs'
962 ] );
963 }
964
970 public function addRedirectField(): self {
971 $this->getRedirectFilter()->capture();
972 return $this;
973 }
974
985 public function commentFields(): self {
986 $this->prepareCallbacks['commentFields'] = function () {
987 $this->joinForFields( 'comment' )->straight();
988 $this->fields( [
989 'rc_comment_text' => 'recentchanges_comment.comment_text',
990 'rc_comment_data' => 'recentchanges_comment.comment_data',
991 'rc_comment_cid' => 'recentchanges_comment.comment_id'
992 ] );
993 };
994 return $this;
995 }
996
1002 public function maybeAddWatchlistExpiryField(): self {
1003 if ( $this->config->get( MainConfigNames::WatchlistExpiry ) ) {
1004 $this->getWatchlistExpiryJoinModule()->forFields( $this )->weakLeft();
1005 $this->fields( 'we_expiry' );
1006 }
1007 return $this;
1008 }
1009
1026 public function legacyMutator( callable $callback ) {
1027 $this->legacyMutators[] = $callback;
1028 return $this;
1029 }
1030
1045 public function sqbMutator( callable $callback ) {
1046 $this->sqbMutators[] = $callback;
1047 return $this;
1048 }
1049
1055 public function fetchResult(): ChangesListResult {
1056 $this->prepare();
1057 if ( $this->isEmptySet() ) {
1058 return $this->newResult();
1059 }
1060
1061 $shouldPartition = $this->shouldDoPartitioning();
1062 if ( $shouldPartition ) {
1063 $this->prepareEmulatedUnion();
1064 }
1065
1066 $sqb = $this->createQueryBuilder();
1067 if ( !$shouldPartition ) {
1068 $this->applyTimestampFilter( $sqb );
1069 }
1070 $sqb = $this->applyMutators( $sqb );
1071 if ( !$sqb || $this->isEmptySet() ) {
1072 return $this->newResult();
1073 }
1074
1075 $queries = $this->applyLinkTarget( $sqb );
1076
1077 $timer = $this->statsFactory->getTiming( 'ChangesListQuery_query_seconds' )
1078 ->setLabel( 'caller', $this->caller ?? 'unknown' )
1079 ->setLabel( 'union', (string)count( $queries ) )
1080 ->start();
1081
1082 if ( $shouldPartition ) {
1083 $timer->setLabel( 'strategy', 'partition' );
1084 $res = $this->doPartitionUnion( $queries );
1085 } else {
1086 $timer->setLabel( 'strategy', 'simple' );
1087 $res = $this->maybeEmulateUnion( $queries );
1088 }
1089
1090 $timer->stop();
1091
1092 return $this->newResult( $res );
1093 }
1094
1098 private function prepare() {
1099 if ( $this->linkTables ) {
1100 $this->adjustDensity( self::DENSITY_LINKS )
1101 ->joinOrderHint( self::JOIN_ORDER_OTHER );
1102 }
1103 foreach ( $this->filterModules as $module ) {
1104 $module->prepareQuery( $this->db, $this );
1105 }
1106 foreach ( $this->prepareCallbacks as $callback ) {
1107 $callback();
1108 }
1109 $this->prepareAudienceCondition( $this->audience );
1110 if ( count( $this->linkTables ) > 1 ) {
1111 $this->prepareEmulatedUnion();
1112 }
1113 }
1114
1118 private function prepareEmulatedUnion() {
1119 $this->preparedEmulatedUnion = true;
1120 $this->fields( [ 'rc_timestamp', 'rc_id' ] );
1121 }
1122
1127 private function newResult( $rows = [] ): ChangesListResult {
1128 return new ChangesListResult( $rows, $this->getHighlightsFromRow( ... ) );
1129 }
1130
1137 private function prepareAudienceCondition( ?Authority $authority ) {
1138 if ( $this->excludeDeletedUser ) {
1139 if ( !$authority || !$authority->isAllowed( 'deletedhistory' ) ) {
1140 $bitmask = RevisionRecord::DELETED_USER;
1141 } elseif ( !$authority->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) {
1142 $bitmask = RevisionRecord::DELETED_USER | RevisionRecord::DELETED_RESTRICTED;
1143 } else {
1144 $bitmask = 0;
1145 }
1146 if ( $bitmask ) {
1147 $this->where( new RawSQLExpression(
1148 $this->db->bitAnd( 'rc_deleted', $bitmask ) . " != $bitmask"
1149 ) );
1150 }
1151 }
1152 if ( $this->excludeDeletedAction ) {
1153 // Log entries with DELETED_ACTION must not show up unless the user has
1154 // the necessary rights.
1155 if ( !$authority || !$authority->isAllowed( 'deletedhistory' ) ) {
1156 $bitmask = LogPage::DELETED_ACTION;
1157 } elseif ( !$authority->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) {
1158 $bitmask = LogPage::DELETED_ACTION | LogPage::DELETED_RESTRICTED;
1159 } else {
1160 $bitmask = 0;
1161 }
1162 if ( $bitmask ) {
1163 $this->where( $this->db->expr( 'rc_source', '!=', RecentChange::SRC_LOG )
1164 ->orExpr( new RawSQLExpression(
1165 $this->db->bitAnd( 'rc_deleted', $bitmask ) . " != $bitmask"
1166 ) )
1167 );
1168 }
1169 }
1170 }
1171
1172 private function createQueryBuilder(): SelectQueryBuilder {
1173 $sqb = $this->db->newSelectQueryBuilder()
1174 ->select( $this->getUniqueFields() )
1175 ->from( 'recentchanges' )
1176 ->where( $this->conds );
1177
1178 $this->applyOptions( $sqb );
1179
1180 foreach ( $this->joinModules as $join ) {
1181 $join->prepare( $sqb );
1182 }
1183 return $sqb;
1184 }
1185
1191 private function applyOptions( SelectQueryBuilder $sqb ) {
1192 if ( $this->distinct ) {
1193 $sqb->distinct();
1194 // In order to prevent DISTINCT from causing query performance problems,
1195 // we have to GROUP BY the primary key.
1196 $sqb->groupBy( [ 'rc_timestamp', 'rc_id' ] );
1197 }
1198 $dir = $this->sort === self::SORT_TIMESTAMP_ASC ? 'ASC' : 'DESC';
1199 $sqb->orderBy( [ "rc_timestamp $dir", "rc_id $dir" ] );
1200
1201 $sqb->caller( $this->caller ?? __CLASS__ );
1202 if ( $this->limit !== null ) {
1203 $sqb->limit( $this->limit );
1204 }
1205 if ( $this->maxExecutionTime !== null ) {
1206 $sqb->setMaxExecutionTime( $this->maxExecutionTime );
1207 }
1208 }
1209
1215 private function applyTimestampFilter( SelectQueryBuilder $sqb ) {
1216 if ( $this->minTimestamp !== null ) {
1217 $sqb->andWhere( $this->db->expr( 'rc_timestamp', '>=',
1218 $this->db->timestamp( $this->minTimestamp ) ) );
1219 }
1220 $this->applyStartOrEnd( $sqb, true, $this->startTimestamp, $this->startId );
1221 $this->applyStartOrEnd( $sqb, false, $this->endTimestamp, $this->endId );
1222 }
1223
1230 private function applyStartOrEnd( SelectQueryBuilder $sqb, $isStart, $ts, $id ) {
1231 if ( $ts === null ) {
1232 return;
1233 }
1234 $op = ( $isStart === ( $this->sort === self::SORT_TIMESTAMP_ASC ) ) ? '>=' : '<=';
1235 $conds = [ 'rc_timestamp' => $this->db->timestamp( $ts ) ];
1236 if ( $id !== null ) {
1237 $conds['rc_id'] = $id;
1238 }
1239 $sqb->andWhere( $this->db->buildComparison( $op, $conds ) );
1240 }
1241
1247 private function getUniqueFields() {
1248 $seen = [];
1249 $fields = [];
1250 foreach ( $this->fields as $index => $value ) {
1251 if ( is_numeric( $index ) ) {
1252 if ( !array_key_exists( $index, $seen ) ) {
1253 $fields[] = $value;
1254 $seen[$index] = true;
1255 }
1256 } else {
1257 $fields[$index] = $value;
1258 }
1259 }
1260 return $fields;
1261 }
1262
1269 private function applyMutators( SelectQueryBuilder $sqb ) {
1270 if ( $this->legacyMutators ) {
1271 $queryInfo = $sqb->getQueryInfo();
1272 foreach ( $this->legacyMutators as $mutator ) {
1273 $ret = $mutator(
1274 $queryInfo['tables'],
1275 $queryInfo['fields'],
1276 $queryInfo['conds'],
1277 $queryInfo['options'],
1278 $queryInfo['join_conds']
1279 );
1280 if ( $ret === false ) {
1281 $this->forceEmptySet();
1282 return null;
1283 }
1284 }
1285 $sqb = $this->db->newSelectQueryBuilder()
1286 ->queryInfo( $queryInfo );
1287 }
1288 foreach ( $this->sqbMutators as $mutator ) {
1289 // Note $sqb may be passed by reference and reassigned
1290 $mutator( $sqb );
1291 }
1292 return $sqb;
1293 }
1294
1303 private function applyLinkTarget( SelectQueryBuilder $mainQueryBuilder ): array {
1304 if ( !$this->linkTarget ) {
1305 return [ $mainQueryBuilder ];
1306 }
1307
1308 $queries = [];
1309 foreach ( $this->linkTables as $linkTable ) {
1310 $queryBuilder = clone $mainQueryBuilder;
1311 $useVirtualDomains = $this->shouldUseVirtualDomains( $linkTable );
1312
1313 if ( $this->linkDirection === self::LINKS_TO ) {
1314 $ok = $useVirtualDomains
1315 ? $this->applyLinksToFilter( $queryBuilder, $this->linkTarget, $linkTable )
1316 : $this->applyLinksToCondition( $queryBuilder, $this->linkTarget, $linkTable );
1317 } else {
1318 $ok = $useVirtualDomains
1319 ? $this->applyLinksFromFilter( $queryBuilder, $this->linkTarget, $linkTable )
1320 : $this->applyLinksFromCondition( $queryBuilder, $this->linkTarget, $linkTable );
1321 }
1322
1323 if ( $ok ) {
1324 $queries[] = $queryBuilder;
1325 }
1326 }
1327 return $queries;
1328 }
1329
1344 private function shouldUseVirtualDomains( string $linkTable ): bool {
1345 return isset( $this->virtualDomainsMapping[self::LINK_TABLE_VIRTUAL_DOMAINS[$linkTable]] );
1346 }
1347
1356 private function applyLinksToCondition(
1357 SelectQueryBuilder $queryBuilder,
1358 PageIdentity $page,
1359 string $linkTable
1360 ): bool {
1361 $prefix = self::LINK_TABLE_PREFIXES[$linkTable];
1362 $queryBuilder->join( $linkTable, null, "rc_cur_id = {$prefix}_from" );
1363 if ( $linkTable === 'imagelinks' ) {
1364 // The imagelinks table has no xx_namespace field and has xx_to instead of xx_target_id
1365 if ( $page->getNamespace() !== NS_FILE ) {
1366 // No imagelinks to a non-image page
1367 return false;
1368 }
1369 $title = TitleValue::newFromPage( $page );
1370 $cond = MediaWikiServices::getInstance()->getLinksMigration()->getLinksConditions( 'imagelinks', $title );
1371 $queryBuilder->where( $cond );
1372 } else {
1373 $linkTarget = $page instanceof LinkTarget ? $page : TitleValue::newFromPage( $page );
1374 $targetId = $this->linkTargetLookup->getLinkTargetId( $linkTarget );
1375 if ( !$targetId ) {
1376 return false;
1377 }
1378 $queryBuilder->where( $this->db->expr( "{$prefix}_target_id", '=', $targetId ) );
1379 }
1380 return true;
1381 }
1382
1397 private function applyLinksToFilter(
1398 SelectQueryBuilder $queryBuilder,
1399 PageIdentity $page,
1400 string $linkTable
1401 ): bool {
1402 $linkTarget = $page instanceof LinkTarget ? $page : TitleValue::newFromPage( $page );
1403 $targetId = $this->linkTargetLookup->getLinkTargetId( $linkTarget );
1404 if ( !$targetId ) {
1405 return false;
1406 }
1407
1408 $connProvider = MediaWikiServices::getInstance()->getConnectionProvider();
1409 $dbr = $connProvider->getReplicaDatabase( self::LINK_TABLE_VIRTUAL_DOMAINS[$linkTable] );
1410 $prefix = self::LINK_TABLE_PREFIXES[$linkTable];
1411
1412 $res = $dbr->newSelectQuerybuilder()
1413 ->select( "{$prefix}_from" )
1414 ->from( $linkTable )
1415 ->where( [ "{$prefix}_target_id" => $targetId ] )
1416 ->limit( 5000 )
1417 ->caller( __METHOD__ )
1418 ->fetchFieldValues();
1419
1420 if ( $res === [] ) {
1421 return false;
1422 }
1423
1424 $queryBuilder->where( [ 'rc_cur_id' => $res ] );
1425
1426 return true;
1427 }
1428
1437 private function applyLinksFromCondition(
1438 SelectQueryBuilder $queryBuilder,
1439 PageIdentity $page,
1440 string $linkTable
1441 ): bool {
1442 if ( !$page->getId() ) {
1443 // No links from a non-existent page
1444 return false;
1445 }
1446 $prefix = self::LINK_TABLE_PREFIXES[$linkTable];
1447 $queryBuilder
1448 ->where( [ "{$prefix}_from" => $page->getId() ] )
1449 ->join( 'linktarget', null, [ 'rc_namespace = lt_namespace', 'rc_title = lt_title' ] )
1450 ->join( $linkTable, null, "{$prefix}_target_id = lt_id" );
1451 return true;
1452 }
1453
1468 private function applyLinksFromFilter(
1469 SelectQueryBuilder $queryBuilder,
1470 PageIdentity $page,
1471 string $linkTable
1472 ): bool {
1473 if ( !$page->getId() ) {
1474 // No links from a non-existent page
1475 return false;
1476 }
1477
1478 $connProvider = MediaWikiServices::getInstance()->getConnectionProvider();
1479 $dbr = $connProvider->getReplicaDatabase( self::LINK_TABLE_VIRTUAL_DOMAINS[$linkTable] );
1480 $prefix = self::LINK_TABLE_PREFIXES[$linkTable];
1481
1482 $res = $dbr->newSelectQuerybuilder()
1483 ->select( 'page_id' )
1484 ->from( 'linktarget' )
1485 ->join( $linkTable, null, "{$prefix}_target_id = lt_id" )
1486 ->join( 'page', null, [ 'lt_namespace = page_namespace', 'lt_title = page_title' ] )
1487 ->where( [ "{$prefix}_from" => $page->getId() ] )
1488 ->limit( 5000 )
1489 ->caller( __METHOD__ )
1490 ->fetchFieldValues();
1491
1492 if ( $res === [] ) {
1493 return false;
1494 }
1495
1496 $queryBuilder->where( [ 'rc_cur_id' => $res ] );
1497
1498 return true;
1499 }
1500
1507 private function maybeEmulateUnion( $queries ) {
1508 if ( !$queries ) {
1509 return [];
1510 } elseif ( count( $queries ) === 1 ) {
1511 return $queries[0]->fetchResultSet();
1512 } else {
1513 $rows = [];
1514 $this->emulateUnion( $queries, $this->limit, $rows );
1515 return $rows;
1516 }
1517 }
1518
1526 private function emulateUnion( array $queries, ?int $limit, &$rows ) {
1527 if ( !$this->preparedEmulatedUnion ) {
1528 throw new LogicException(
1529 'emulateUnion() was called but not prepareEmulatedUnion()' );
1530 }
1531 $unsortedRows = [];
1532 foreach ( $queries as $query ) {
1533 foreach ( $query->fetchResultSet() as $row ) {
1534 $unsortedRows[] = $row;
1535 }
1536 }
1537 $this->sortAndTruncate( $unsortedRows, $limit, $rows );
1538 }
1539
1549 public function sortAndTruncate( array $inRows, ?int $limit, &$outRows ) {
1550 usort( $inRows, static function ( $a, $b ) {
1551 if ( $a->rc_timestamp === $b->rc_timestamp ) {
1552 return $b->rc_id <=> $a->rc_id;
1553 } else {
1554 return $b->rc_timestamp <=> $a->rc_timestamp;
1555 }
1556 } );
1557 // Remove duplicates and slice
1558 $prevId = null;
1559 $numOut = 0;
1560 foreach ( $inRows as $row ) {
1561 if ( $prevId !== $row->rc_id ) {
1562 $outRows[] = $row;
1563 $numOut++;
1564 if ( $numOut === $limit ) {
1565 break;
1566 }
1567 }
1568 $prevId = $row->rc_id;
1569 }
1570 }
1571
1583 private function shouldDoPartitioning(): bool {
1584 return $this->forcePartitioning
1585 || ( $this->enablePartitioning
1586 && $this->limit !== null
1587 && $this->minTimestamp !== null
1588 && $this->joinOrderHint === self::JOIN_ORDER_OTHER
1589 && $this->sort === self::SORT_TIMESTAMP_DESC
1590 && $this->estimateSize() > self::PARTITION_THRESHOLD
1591 );
1592 }
1593
1600 private function estimateSize() {
1601 $now = ConvertibleTimestamp::time();
1602 $min = (int)ConvertibleTimestamp::convert( TS::UNIX, $this->minTimestamp );
1603 $period = min( $now - $min, $this->rcMaxAge );
1604 return $this->rcStats->getIdDelta() * $this->density * $period;
1605 }
1606
1611 private function doPartitionUnion( array $queries ) {
1612 if ( !$this->preparedEmulatedUnion ) {
1613 throw new LogicException(
1614 'doPartitionUnion() was called but not prepareEmulatedUnion()' );
1615 }
1616 $unsortedRows = [];
1617 foreach ( $queries as $query ) {
1618 $this->doPartitionQuery( $query, $unsortedRows );
1619 }
1620 if ( count( $queries ) > 1 ) {
1621 $rows = [];
1622 $this->sortAndTruncate( $unsortedRows, $this->limit, $rows );
1623 return $rows;
1624 } else {
1625 return $unsortedRows;
1626 }
1627 }
1628
1638 private function doPartitionQuery( SelectQueryBuilder $sqb, &$rows ) {
1639 $now = ConvertibleTimestamp::time();
1640 $minTime = (int)ConvertibleTimestamp::convert( TS::UNIX,
1641 $this->minTimestamp ?? $now - $this->rcMaxAge );
1642 $limit = $this->limit ?? 10_000;
1643 $rcSize = $this->rcStats->getIdDelta();
1644
1645 $this->logger->debug( 'Beginning partition request with density={density}, period={period}',
1646 [
1647 'period' => $now - $minTime,
1648 'limit' => $limit,
1649 'density' => $this->density,
1650 'rcSize' => $rcSize,
1651 ]
1652 );
1653
1654 $partitioner = new TimestampRangePartitioner( $minTime, $now, $limit,
1655 null, $this->density, $rcSize, $this->rcMaxAge );
1656 do {
1657 [ $min, $max, $limit ] = $partitioner->getNextPartition();
1658
1659 $partitionQuery = clone $sqb;
1660 if ( $min !== null ) {
1661 $partitionQuery->where( $this->db->expr(
1662 'rc_timestamp', '>=', $this->db->timestamp( $min ) ) );
1663 }
1664 if ( $max !== null ) {
1665 $partitionQuery->where( $this->db->expr(
1666 'rc_timestamp', '<=', $this->db->timestamp( $max ) ) );
1667 }
1668 $partitionQuery->limit( $limit );
1669
1670 $row = null;
1671 $res = $partitionQuery->fetchResultSet();
1672 foreach ( $res as $row ) {
1673 $rows[] = $row;
1674 }
1675 $partitioner->notifyResult(
1676 $row ? (int)ConvertibleTimestamp::convert( TS::UNIX, $row->rc_timestamp ) : null,
1677 $res->numRows()
1678 );
1679 } while ( !$partitioner->isDone() );
1680
1681 $m = $partitioner->getMetrics();
1682 $this->logger->debug( 'Finished partition request: ' .
1683 'got {actualRows} rows in {queryCount} queries, period={actualPeriod}',
1684 $m
1685 );
1686
1687 $this->statsFactory->getCounter( 'ChangesListQuery_partition_queries_total' )
1688 ->incrementBy( $m['queryCount'] );
1689 $this->statsFactory->getCounter( 'ChangesListQuery_partition_requests_total' )
1690 ->increment();
1691 $this->statsFactory->getCounter( 'ChangesListQuery_partition_rows_total' )
1692 ->incrementBy( $m['actualRows' ] );
1693 $this->statsFactory->getCounter( 'ChangesListQuery_partition_overrun_total' )
1694 ->incrementBy(
1695 $m['actualRows'] * ( $m['queryPeriod'] / ( $m['actualPeriod'] ?: 1 ) - 1 )
1696 );
1697 }
1698
1706 private function getHighlightsFromRow( stdClass $row ) {
1707 $activeHighlights = [];
1708 foreach ( $this->highlights as $name => $highlights ) {
1709 foreach ( $highlights as $hl ) {
1710 $module = $this->getFilter( $hl->moduleName );
1711 if ( $module->evaluate( $row, $hl->value ) === $hl->sense ) {
1712 $activeHighlights[$name] = true;
1713 }
1714 }
1715 }
1716 return $activeHighlights;
1717 }
1718
1719 private function getFilter( string $name ): ChangesListCondition {
1720 if ( !isset( $this->filterModules[$name] ) ) {
1721 throw new InvalidArgumentException( "Unknown filter module \"$name\"" );
1722 }
1723 return $this->filterModules[$name];
1724 }
1725
1732 public function where( IExpression $expr ): self {
1733 $this->conds[] = $expr;
1734 return $this;
1735 }
1736
1743 public function caller( string $caller ): self {
1744 $this->caller = $caller;
1745 return $this;
1746 }
1747
1749 public function joinForFields( string $table ): ChangesListJoinBuilder {
1750 return $this->getJoin( $table )->forFields( $this );
1751 }
1752
1754 public function joinForConds( string $table ): ChangesListJoinBuilder {
1755 return $this->getJoin( $table )->forConds( $this );
1756 }
1757
1758 private function getJoin( string $name ): ChangesListJoinModule {
1759 if ( !isset( $this->joinModules[$name] ) ) {
1760 throw new InvalidArgumentException( "Unknown join module \"$name\"" );
1761 }
1762 return $this->joinModules[$name];
1763 }
1764
1766 public function distinct(): QueryBackend {
1767 $this->distinct = true;
1768 return $this;
1769 }
1770
1776 public function registerFilter( $name, ChangesListCondition $module ) {
1777 $this->filterModules[$name] = $module;
1778 }
1779
1780}
const NS_FILE
Definition Defines.php:57
if(!defined('MW_SETUP_CALLBACK'))
Definition WebStart.php:69
Read-write access to the change_tags table.
A class for passing options to services.
Class to simplify the use of log pages.
Definition LogPage.php:35
A class containing constants representing the names of configuration variables.
const RCMaxAge
Name constant for the RCMaxAge setting, for use with Config::get()
const WatchlistExpiry
Name constant for the WatchlistExpiry setting, for use with Config::get()
const EnableChangesListQueryPartitioning
Name constant for the EnableChangesListQueryPartitioning setting, for use with Config::get()
const MiserMode
Name constant for the MiserMode setting, for use with Config::get()
const VirtualDomainsMapping
Name constant for the VirtualDomainsMapping setting, for use with Config::get()
Service locator for MediaWiki core services.
A simple join with a fixed join condition.
Definition BasicJoin.php:13
A filter module which builds conditions for a boolean field.
A tri-state boolean from a field of a potentially left-joined table.
An object encapsulating a single instance of a join on a table.
Build and execute a query on the recentchanges table, optionally with joins and conditions.
distinct()
Flag that the joins will inadvertently duplicate recentchanges rows and that the query will have to d...
minTimestamp( $timestamp)
Set the minimum (earliest) rc_timestamp value.
sha1Fields()
Add the rev_deleted and rev_slot_pair fields, used by ApiQueryRecentChanges to deliver SHA-1 hashes f...
endAt(string $timestamp, ?int $id=null)
Set the timestamp and ID for the end of the query results.
excludeNamespaces(array $namespaces)
Exclude namespaces by ID.
commentFields()
Add CommentStore fields: rc_comment_text, rc_comment_data, rc_comment_cid.
requireChangeTags( $tagNames)
Require that the change has one of the specified change tags.
maxExecutionTime(float|int|null $time)
Set the maximum query execution time in seconds, or null to disable the time limit.
allowDeletedLogAction()
Override a previous call to excludeDeletedLogAction(), allowing deleted log rows to be shown.
requireLink(string $direction, array $tables, PageIdentity $page)
Require that the changed page links from or to the specified page, via the specified links tables.
enablePartitioning()
Enable query partitioning by timestamp, overriding the config.
adjustDensity( $density)
Adjust the density heuristic by multiplying it by the given factor.This sets the proportion of recent...
legacyMutator(callable $callback)
Add a callback which will be called when building an SQL query.
requireLatest()
Require that the change is the latest change to the page.
addChangeTagSummaryField()
Add the change tag summary field ts_tags.
excludeChangeTags( $tagNames)
Exclude changes matching any of the specified change tags.
highlight(string $name, string $verb, string $moduleName, $value=null)
Add a highlight to the query.
sqbMutator(callable $callback)
Add a callback which will be called with a SelectQueryBuilder during query construction.
requireUser(UserIdentity $user)
Require changes by a specific user.
__construct(private ServiceOptions $config, private RecentChangeLookup $recentChangeLookup, private WatchedItemStoreInterface $watchedItemStore, private TempUserConfig $tempUserConfig, private UserFactory $userFactory, private LinkTargetLookup $linkTargetLookup, private ChangeTagsStore $changeTagsStore, private StatsFactory $statsFactory, private NameTableStore $slotRoleStore, private LoggerInterface $logger, private IReadableDatabase $db, private TableStatsProvider $rcStats,)
sortAndTruncate(array $inRows, ?int $limit, &$outRows)
Sort rows by rc_timestamp/rc_id, remove any duplicates, and then truncate to the current query limit.
where(IExpression $expr)
Add a condition to the query.
excludeDeletedUser()
Exclude rows with the DELETED_USER bit set, unless the configured audience has permission to view suc...
addWatchlistLabelSummaryField()
Add the labels summary field wlm_label_summary.
audience(?Authority $authority)
Set the Authority used for rc_deleted filters.
forceEmptySet()
Set a flag forcing the query to return no rows when it is executed.
requireTitle(LinkTarget|PageReference $title)
Return only changes to a given page.
requireWatched( $watchTypes=[ 'watchedold', 'watchednew'])
Require that the changed page is watched by the watchlist user specified in a call to watchlistUser()...
denseRcSizeThreshold( $threshold)
Set the minimum size of the recentchanges table at which change tag queries will be conditionally mod...
excludeDeletedLogAction()
Exclude rows relating to log entries that have the DELETED_ACTION bit set, unless the configured audi...
watchlistFields( $fields=[ 'wl_user', 'wl_notificationtimestamp', 'we_expiry'])
Add watchlist fields to the query, and the relevant join.
requireNamespaces(array $namespaces)
Require namespaces by ID.
joinForConds(string $table)
Join on the specified table and declare that it will be used to provide fields for the WHERE clause....
isEmptySet()
Check whether forceEmptySet() has been called.
requireSubpageOf(LinkTarget|PageReference $page)
Require that changed titles are subpages of a given page.
excludeWatchlistLabelIds(array $labelIds)
Require that the changed page is not watched with one of the specified watchlist label IDs.
maybeAddWatchlistExpiryField()
Add the we_expiry field and its related join, if watchlist expiry is enabled.
requireWatchlistLabelIds(array $labelIds)
Require that the changed page is watched with one of the specified watchlist label IDs.
const PARTITION_THRESHOLD
Minimum number of estimated rows before timestamp partitioning is considered.
fetchResult()
Execute the query and return the result.
requireSources(array $sources)
Require that the changes come from the specified sources, e.g.
recentChangeFields()
Add fields to the query sufficient for the subsequent construction of RecentChange objects from the r...
excludeUser(UserIdentity $user)
Exclude changes by a specific user.
startAt(string $timestamp, ?int $id=null)
Set the timestamp and ID for the start of the query results.
limit(int $limit)
Set the maximum number of rows to return.
watchlistUser(UserIdentity $user)
Set the user to be used for watchlist joins.
requireSlotChanged(string $role)
Require that a specified slot role was modified.
joinForFields(string $table)
Join on the specified table and declare that it will be used to provide fields for the SELECT clause....
rcUserFields()
Add the rc_user and rc_user_text fields to the query, conventional aliases for actor_user and actor_n...
applyAction(string $verb, string $moduleName, $value=null)
Apply an arbitrary action.
caller(string $caller)
Set the caller name to be passed down to the DBMS.
An equals or not-equals comparison with a field that is known to have a small fixed set of values.
A filter condition module for user experience levels.
A filter condition module which uses equals or not-equals operators.
A filter module which checks if the change actor is registered and "named", i.e.
Check if the recentchange row has been seen by the current watchlist user.
A join on the slots table, mostly to support requireSlotChanged().
Definition SlotsJoin.php:18
Check if the changed title is a subpage of some specified title.
Cache and provide min/max ID and "size" (ID delta) of a table.
Check if a recentchange row is watched by the current watchlist user.
A watchlist join with a settable condition on wl_user.
Utility class for creating and reading rows in the recentchanges table.
Page revision base class.
Exception representing a failure to look up a row from a name table.
Represents the target of a wiki link.
Create User objects.
leftJoin( $table, $alias=null, $conds=[])
Left join a table or group of tables.
Raw SQL expression to be used in query builders.
Build SELECT queries with a fluent interface.
fields( $fields)
Add a field or an array of fields to the query.
This is the primary interface for validating metrics definitions, caching defined metrics,...
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, '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'=> '', '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'=>[], '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'=> false, '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 -o $output $input', 'ImagickExt'=>['SvgHandler::rasterizeImagickExt',],], 'SVGConverter'=> 'ImageMagick', 'SVGConverterPath'=> '', 'SVGMaxSize'=> 5120, 'SVGMetadataCutoff'=> 5242880, 'SVGNativeRendering'=> true, 'SVGNativeRenderingSizeLimit'=> 51200, 'MediaInTargetLanguage'=> true, 'MaxImageArea'=> 12500000, 'MaxAnimatedGifArea'=> 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, 'ThumbnailStepsRatio'=> 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, 'UserEmailConfirmationUseHTML'=> false, 'PasswordExpirationDays'=> false, 'PasswordExpireGrace'=> 604800, 'SMTP'=> false, 'AdditionalMailParams'=> null, 'AllowHTMLEmail'=> false, 'EnotifFromEditor'=> false, 'EmailAuthentication'=> true, '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'=>[], 'FileSchemaMigrationStage'=> 3, 'ImageLinksSchemaMigrationStage'=> 768, 'ExternalLinksDomainGaps'=>[], 'ContentHandlers'=>['wikitext'=>['class'=> 'MediaWiki\\Content\\WikitextContentHandler', 'services'=>['TitleFactory', 'ParserFactory', 'GlobalIdGenerator', 'LanguageNameUtils', 'LinkRenderer', 'MagicWordFactory', 'ParsoidParserFactory',],], 'javascript'=>['class'=> 'MediaWiki\\Content\\JavaScriptContentHandler', 'services'=>['MainConfig', 'ParserFactory', 'UserOptionsLookup',],], 'json'=>['class'=> 'MediaWiki\\Content\\JsonContentHandler', 'services'=>['ParsoidParserFactory', 'TitleFactory',],], 'css'=>['class'=> 'MediaWiki\\Content\\CssContentHandler', 'services'=>['MainConfig', 'ParserFactory', 'UserOptionsLookup',],], 'vue'=>['class'=> 'MediaWiki\\Content\\VueContentHandler', 'services'=>['MainConfig', 'ParserFactory',],], '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, 'WarmParsoidParserCache'=> false,], 'ParsoidSelectiveUpdateSampleRate'=> 0, 'ParserCacheFilterConfig'=>['pcache'=>['default'=>['minCpuTime'=> 0,],], 'parsoid-pcache'=>['default'=>['minCpuTime'=> 0,],], 'postproc-pcache'=>['default'=>['minCpuTime'=> 9223372036854775807,],], 'postproc-parsoid-pcache'=>['default'=>['minCpuTime'=> 9223372036854775807,],],], 'ChronologyProtectorSecret'=> '', 'ParserCacheExpireTime'=> 86400, 'ParserCacheAsyncExpireTime'=> 60, 'ParserCacheAsyncRefreshJobs'=> true, 'OldRevisionParserCacheExpireTime'=> 3600, 'ObjectCacheSessionExpiry'=> 3600, 'PHPSessionHandling'=> 'warn', 'SuspiciousIpExpiry'=> false, 'SessionPbkdf2Iterations'=> 10001, 'UseSessionCookieJwt'=> false, 'UseSessionCookieForBotPasswords'=> 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, 'ForcedRawSMaxage'=> 300, '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',],],], '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, ], '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, 'UseLegacyMediaStyles' => 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, ], ], '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, ], 'AllowSecuritySensitiveOperationIfCannotReauthenticate' => [ 'default' => true, ], '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, '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, ], '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, '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' => [ ], '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, 'pagelang' => true, ], 'editprotected' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'editprotected' => true, ], 'editmycssjs' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'editmyusercss' => true, 'editmyuserjson' => true, 'editmyuserjs' => true, ], 'editmyoptions' => [ 'editmyoptions' => true, 'editmyuserjson' => true, ], 'editinterface' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => true, 'editinterface' => true, 'edituserjson' => true, 'editsitejson' => true, ], 'editsiteconfig' => [ 'edit' => true, 'minoredit' => true, 'applychangetags' => true, 'changetags' => true, 'editcontentmodel' => 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, '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, '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, 'editprotected' => true, 'protect' => true, ], 'viewmywatchlist' => [ 'viewmywatchlist' => true, ], 'editmywatchlist' => [ 'editmywatchlist' => true, ], 'sendemail' => [ 'sendemail' => true, ], 'createaccount' => [ 'createaccount' => true, ], 'privateinfo' => [ 'viewmyprivateinfo' => true, ], 'mergehistory' => [ 'mergehistory' => 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', 'editviewmywatchlist' => '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', ], 'GrantRiskGroups' => [ 'basic' => 'low', 'editpage' => 'low', 'createeditmovepage' => 'low', 'editprotected' => 'vandalism', 'patrol' => 'low', 'uploadfile' => 'low', 'uploadeditmovefile' => 'low', 'sendemail' => 'security', 'viewmywatchlist' => 'low', 'editviewmywatchlist' => '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', ], 'EnableBotPasswords' => true, 'BotPasswordsCluster' => false, 'BotPasswordsDatabase' => false, 'BotPasswordsLimit' => 100, 'SecretKey' => false, 'JwtPrivateKey' => false, 'JwtPublicKey' => false, 'AllowUserJs' => false, 'AllowUserCss' => false, 'AllowUserCssPrefs' => true, 'UseSiteJs' => true, 'UseSiteCss' => true, 'BreakFrames' => false, 'EditPageFrameOptions' => 'DENY', 'ApiFrameOptions' => 'DENY', 'CSPHeader' => false, 'CSPReportOnlyHeader' => 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, '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' => [ ], 'StatsdServer' => false, 'StatsdMetricPrefix' => 'MediaWiki', 'StatsTarget' => null, 'StatsFormat' => null, 'StatsPrefix' => 'mediawiki', 'OpenTelemetryConfig' => null, 'PageInfoTransclusionLimit' => 50, 'EnableJavaScriptTest' => false, 'CachePrefix' => false, 'DebugToolbar' => false, '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: ], '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' => [ ], 'RCEngines' => [ 'redis' => 'MediaWiki\\RCFeed\\RedisPubSubFeedEngine', 'udp' => 'MediaWiki\\RCFeed\\UDPRCFeedEngine', ], '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, ], '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, '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\\JobQueue\\Jobs\\CategoryMembershipChangeJob', 'services' => [ 'RecentChangeFactory', ], ], 'CategoryCountUpdateJob' => [ 'class' => 'MediaWiki\\JobQueue\\Jobs\\CategoryCountUpdateJob', 'services' => [ 'ConnectionProvider', 'NamespaceInfo', ], ], 'clearUserWatchlist' => 'MediaWiki\\Watchlist\\ClearUserWatchlistJob', 'watchlistExpiry' => 'MediaWiki\\Watchlist\\WatchlistExpiryJob', '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', 'parsoidCachePrewarm' => [ 'class' => 'MediaWiki\\JobQueue\\Jobs\\ParsoidCachePrewarmJob', 'services' => [ 'ParserOutputAccess', 'PageStore', 'RevisionLookup', 'ParsoidSiteConfig', ], 'needsPage' => false, ], '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, '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', 'Access-Control-Max-Age', 'Authorization', ], 'RestAPIAdditionalRouteFiles' => [ ], 'RestSandboxSpecs' => [ ], '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, 'AsyncHTTPTimeout' => 25, 'HTTPProxy' => '', 'LocalVirtualHosts' => [ ], 'LocalHTTPProxy' => false, 'AllowExternalReqID' => false, 'JobRunRate' => 1, 'RunJobsAsync' => false, 'UpdateRowsPerJob' => 300, 'UpdateRowsPerQuery' => 100, 'RedirectOnLogin' => null, 'VirtualRestConfig' => [ 'paths' => [ ], 'modules' => [ ], 'global' => [ 'timeout' => 360, 'forwardCookies' => false, 'HTTPProxy' => 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' => [ ], 'CloneArticleParserOutput' => true, 'UseLeximorph' => false, 'UsePostprocCache' => false, 'UsePostprocCacheLegacy' => false, 'UsePostprocCacheParsoid' => false, 'ParserOptionsLogUnsafeSampleRate' => 0, ], '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', 'CacheSharedUploads' => 'boolean', 'ForeignUploadTargets' => 'array', 'UploadDialog' => 'object', 'FileBackends' => 'object', 'LockManagers' => 'array', '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', ], 'ThumbnailStepsRatio' => [ 'number', 'null', ], 'ThumbnailBuckets' => [ 'array', 'null', ], 'UploadThumbnailRenderMap' => 'object', 'GalleryOptions' => 'object', 'DjvuDump' => [ 'string', 'null', ], 'DjvuRenderer' => [ 'string', 'null', ], 'DjvuTxt' => [ 'string', 'null', ], 'DjvuPostProcessor' => [ 'string', 'null', ], 'UserEmailConfirmationUseHTML' => 'boolean', 'SMTP' => [ 'boolean', 'object', ], 'EnotifFromEditor' => 'boolean', 'EnotifRevealEditorAddress' => 'boolean', 'UsersNotifiedOnAllChanges' => 'object', 'DBmwschema' => [ 'string', 'null', ], 'SharedTables' => 'array', 'DBservers' => [ 'boolean', 'array', ], 'LBFactoryConf' => 'object', 'LocalDatabases' => 'array', 'VirtualDomainsMapping' => 'object', 'FileSchemaMigrationStage' => 'integer', 'ImageLinksSchemaMigrationStage' => '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', 'ParserCacheFilterConfig' => 'object', 'ChronologyProtectorSecret' => 'string', 'PHPSessionHandling' => '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', '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', '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', 'AllowSecuritySensitiveOperationIfCannotReauthenticate' => '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', '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', 'CSPHeader' => [ 'boolean', 'object', ], 'CSPReportOnlyHeader' => [ 'boolean', 'object', ], 'CSPFalsePositiveUrls' => 'object', 'AllowCrossOrigin' => 'boolean', 'RestAllowCrossOriginCookieAuth' => 'boolean', 'CookieSameSite' => [ 'string', 'null', ], 'CacheVaryCookies' => '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', 'RCEngines' => 'object', 'OverrideSiteFeed' => 'object', 'FeedClasses' => 'object', 'AdvertisedFeedTypes' => 'array', 'SoftwareTags' => 'object', 'RecentChangesFlags' => 'object', 'WatchlistExpiry' => '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', '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', 'RestSandboxSpecs' => 'object', 'ShellRestrictionMethod' => [ 'string', 'boolean', ], 'ShellboxUrls' => 'object', 'ShellboxSecretKey' => [ 'string', 'null', ], 'ShellboxShell' => [ 'string', 'null', ], 'HTTPTimeout' => 'number', 'HTTPConnectTimeout' => 'number', 'HTTPMaxTimeout' => 'number', 'HTTPMaxConnectTimeout' => 'number', 'LocalVirtualHosts' => 'object', 'LocalHTTPProxy' => [ 'string', 'boolean', ], 'VirtualRestConfig' => 'object', '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', 'CloneArticleParserOutput' => 'boolean', 'UseLeximorph' => 'boolean', 'UsePostprocCache' => 'boolean', 'UsePostprocCacheLegacy' => 'boolean', 'UsePostprocCacheParsoid' => 'boolean', 'ParserOptionsLogUnsafeSampleRate' => 'integer', ], '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', 'VirtualRestConfig' => 'array_plus_2d', ], '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', ], ], ], ], ], 'PHPSessionHandling' => [ 'deprecated' => 'since 1.45 Integration with PHP session handling will be removed in the future', ], 'RawHtmlMessages' => [ 'items' => [ 'type' => 'string', ], ], 'InterwikiLogoOverride' => [ 'items' => [ 'type' => 'string', ], ], 'LegalTitleChars' => [ 'deprecated' => 'since 1.41; use Extension:TitleBlacklist to customize', ], 'ReauthenticateTime' => [ 'additionalProperties' => [ 'type' => 'integer', ], ], 'AllowSecuritySensitiveOperationIfCannotReauthenticate' => [ 'additionalProperties' => [ 'type' => 'boolean', ], ], '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', ], ], ], 'SoftwareTags' => [ 'additionalProperties' => [ 'type' => 'boolean', ], ], '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', ], ], 'RestSandboxSpecs' => [ 'additionalProperties' => [ 'type' => 'object', 'properties' => [ 'url' => [ 'type' => 'string', 'format' => 'url', ], 'name' => [ 'type' => 'string', ], 'file' => [ 'type' => 'string', ], 'msg' => [ 'type' => 'string', 'description' => 'a message key', ], ], ], ], '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 the target of a wiki link.
Interface for objects (potentially) representing an editable wiki page.
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
This interface represents the authority associated with the current execution context,...
Definition Authority.php:23
Interface for modules implementing a boolean condition which may match a row in a ChangesListResult.
A module encapsulating join conditions for a ChangesListQuery join.
The narrow interface provided to join modules to allow them to declare any dependencies they have on ...
The narrow interface passed to filter modules.
const JOIN_ORDER_RECENTCHANGES
The recentchanges table will likely be first in the join.
Interface for temporary user creation config and name matching.
Interface for objects representing user identity.
A database connection without write operations.
Result wrapper for grabbing data queried from an IDatabase object.