MediaWiki  master
MediaWikiServices.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki;
4 
6 use BagOStuff;
8 use CommentStore;
9 use Config;
10 use ConfigFactory;
12 use CryptHKDF;
18 use GenderCache;
19 use GlobalVarConfig;
22 use JobQueueGroup;
23 use JobRunner;
24 use Language;
25 use LinkCache;
26 use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
107 use MessageCache;
108 use MimeAnalyzer;
109 use MWException;
110 use NamespaceInfo;
111 use ObjectCache;
113 use PageProps;
114 use Parser;
115 use ParserCache;
116 use ParserFactory;
117 use PasswordFactory;
118 use PasswordReset;
119 use ProxyLookup;
120 use ReadOnlyMode;
121 use RepoGroup;
122 use ResourceLoader;
123 use SearchEngine;
126 use SiteLookup;
127 use SiteStore;
128 use SkinFactory;
129 use TitleFactory;
130 use TitleFormatter;
131 use TitleParser;
133 use UserCache;
135 use WANObjectCache;
140 use Wikimedia\NonSerializable\NonSerializableTrait;
141 use Wikimedia\ObjectFactory;
144 use Wikimedia\RequestTimeout\CriticalSectionProvider;
145 use Wikimedia\Services\NoSuchServiceException;
146 use Wikimedia\Services\SalvageableService;
147 use Wikimedia\Services\ServiceContainer;
149 
186 class MediaWikiServices extends ServiceContainer {
187  use NonSerializableTrait;
188 
192  private static $globalInstanceAllowed = false;
193 
197  private static $instance = null;
198 
210  public static function allowGlobalInstance() {
211  self::$globalInstanceAllowed = true;
212 
213  if ( self::$instance ) {
214  // TODO: in 1.37, getInstance() should fail if $globalInstanceAllowed is false! (T153256)
215  // Until then, we have to reset service instances that have already been created.
216  // No need to warn here, getService() has already triggered a deprecation warning.
217  self::resetGlobalInstance( null, 'quick' );
218  }
219  }
220 
227  public static function hasInstance() {
228  return self::$instance !== null;
229  }
230 
247  public static function getInstance(): self {
248  // TODO: in 1.37, getInstance() should fail if $globalInstanceAllowed is false! (T153256)
249  if ( !self::$globalInstanceAllowed ) {
250  wfDeprecatedMsg( 'Premature access to service container', '1.36' );
251  }
252 
253  if ( self::$instance === null ) {
254  // NOTE: constructing GlobalVarConfig here is not particularly pretty,
255  // but some information from the global scope has to be injected here,
256  // even if it's just a file name or database credentials to load
257  // configuration from.
258  $bootstrapConfig = new GlobalVarConfig();
259  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
260 
261  // Provides a traditional hook point to allow extensions to configure services.
262  // NOTE: Ideally this would be in newInstance() but it causes an infinite run loop
263  $runner = new HookRunner( self::$instance->getHookContainer() );
264  $runner->onMediaWikiServices( self::$instance );
265  }
266  return self::$instance;
267  }
268 
269  public function getService( $name ) {
270  // TODO: in 1.37, getInstance() should fail if $globalInstanceAllowed is false! (T153256)
271  if ( !self::$globalInstanceAllowed && $this === self::$instance ) {
272  wfDeprecatedMsg( "Premature access to service '$name'", '1.36', false, 3 );
273  }
274 
275  return parent::getService( $name );
276  }
277 
291  public static function forceGlobalInstance( MediaWikiServices $services ) {
292  if ( !defined( 'MW_PHPUNIT_TEST' ) && !defined( 'MW_PARSER_TEST' ) ) {
293  throw new MWException( __METHOD__ . ' must not be used outside unit tests.' );
294  }
295 
296  $old = self::getInstance();
297  self::$instance = $services;
298 
299  return $old;
300  }
301 
341  public static function resetGlobalInstance( Config $bootstrapConfig = null, $quick = '' ) {
342  if ( self::$instance === null ) {
343  // no global instance yet, nothing to reset
344  return;
345  }
346 
347  self::failIfResetNotAllowed( __METHOD__ );
348 
349  if ( $bootstrapConfig === null ) {
350  $bootstrapConfig = self::$instance->getBootstrapConfig();
351  }
352 
353  $oldInstance = self::$instance;
354 
355  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
356 
357  // Provides a traditional hook point to allow extensions to configure services.
358  $runner = new HookRunner( $oldInstance->getHookContainer() );
359  $runner->onMediaWikiServices( self::$instance );
360 
361  self::$instance->importWiring( $oldInstance, [ 'BootstrapConfig' ] );
362 
363  if ( $quick === 'quick' ) {
364  self::$instance->salvage( $oldInstance );
365  } else {
366  $oldInstance->destroy();
367  }
368  }
369 
379  private function salvage( self $other ) {
380  foreach ( $this->getServiceNames() as $name ) {
381  // The service could be new in the new instance and not registered in the
382  // other instance (e.g. an extension that was loaded after the instantiation of
383  // the other instance. Skip this service in this case. See T143974
384  try {
385  $oldService = $other->peekService( $name );
386  } catch ( NoSuchServiceException $e ) {
387  continue;
388  }
389 
390  if ( $oldService instanceof SalvageableService ) {
392  $newService = $this->getService( $name );
393  $newService->salvage( $oldService );
394  }
395  }
396 
397  $other->destroy();
398  }
399 
415  private static function newInstance( Config $bootstrapConfig, $loadWiring = '' ) {
416  $instance = new self( $bootstrapConfig );
417 
418  // Load the default wiring from the specified files.
419  if ( $loadWiring === 'load' ) {
420  $wiringFiles = $bootstrapConfig->get( 'ServiceWiringFiles' );
421  $instance->loadWiringFiles( $wiringFiles );
422  }
423 
424  return $instance;
425  }
426 
442  public static function disableStorageBackend() {
443  // TODO: also disable some Caches, JobQueues, etc
444  $destroy = [ 'DBLoadBalancer', 'DBLoadBalancerFactory' ];
445  $services = self::getInstance();
446 
447  foreach ( $destroy as $name ) {
448  $services->disableService( $name );
449  }
450 
452  }
453 
466  public static function resetChildProcessServices() {
467  // NOTE: for now, just reset everything. Since we don't know the interdependencies
468  // between services, we can't do this more selectively at this time.
469  self::resetGlobalInstance();
470 
471  // Child, reseed because there is no bug in PHP:
472  // https://bugs.php.net/bug.php?id=42465
473  mt_srand( getmypid() );
474  }
475 
497  public function resetServiceForTesting( $name, $destroy = true ) {
498  if ( !defined( 'MW_PHPUNIT_TEST' ) && !defined( 'MW_PARSER_TEST' ) ) {
499  throw new MWException( 'resetServiceForTesting() must not be used outside unit tests.' );
500  }
501 
502  $this->resetService( $name, $destroy );
503  }
504 
532  public static function failIfResetNotAllowed( $method ) {
533  if ( !defined( 'MW_PHPUNIT_TEST' )
534  && !defined( 'MW_PARSER_TEST' )
535  && !defined( 'MEDIAWIKI_INSTALL' )
536  && !defined( 'RUN_MAINTENANCE_IF_MAIN' )
537  && defined( 'MW_SERVICE_BOOTSTRAP_COMPLETE' )
538  ) {
539  throw new MWException( $method . ' may only be called during bootstrapping and unit tests!' );
540  }
541  }
542 
548  public function __construct( Config $config ) {
549  parent::__construct();
550 
551  // Register the given Config object as the bootstrap config service.
552  $this->defineService( 'BootstrapConfig', static function () use ( $config ) {
553  return $config;
554  } );
555  }
556 
557  // CONVENIENCE GETTERS ////////////////////////////////////////////////////
558 
563  public function getActionFactory(): ActionFactory {
564  return $this->getService( 'ActionFactory' );
565  }
566 
571  public function getActorMigration(): ActorMigration {
572  return $this->getService( 'ActorMigration' );
573  }
574 
579  public function getActorNormalization(): ActorNormalization {
580  return $this->getService( 'ActorNormalization' );
581  }
582 
587  public function getActorStore(): ActorStore {
588  return $this->getService( 'ActorStore' );
589  }
590 
595  public function getActorStoreFactory(): ActorStoreFactory {
596  return $this->getService( 'ActorStoreFactory' );
597  }
598 
603  public function getAuthManager(): AuthManager {
604  return $this->getService( 'AuthManager' );
605  }
606 
611  public function getBadFileLookup(): BadFileLookup {
612  return $this->getService( 'BadFileLookup' );
613  }
614 
619  public function getBlobStore(): BlobStore {
620  return $this->getService( 'BlobStore' );
621  }
622 
627  public function getBlobStoreFactory(): BlobStoreFactory {
628  return $this->getService( 'BlobStoreFactory' );
629  }
630 
635  public function getBlockActionInfo(): BlockActionInfo {
636  return $this->getService( 'BlockActionInfo' );
637  }
638 
643  public function getBlockErrorFormatter(): BlockErrorFormatter {
644  return $this->getService( 'BlockErrorFormatter' );
645  }
646 
651  public function getBlockManager(): BlockManager {
652  return $this->getService( 'BlockManager' );
653  }
654 
659  public function getBlockPermissionCheckerFactory(): BlockPermissionCheckerFactory {
660  return $this->getService( 'BlockPermissionCheckerFactory' );
661  }
662 
667  public function getBlockRestrictionStore(): BlockRestrictionStore {
668  return $this->getService( 'BlockRestrictionStore' );
669  }
670 
675  public function getBlockUserFactory(): BlockUserFactory {
676  return $this->getService( 'BlockUserFactory' );
677  }
678 
683  public function getBlockUtils(): BlockUtils {
684  return $this->getService( 'BlockUtils' );
685  }
686 
700  public function getBootstrapConfig(): Config {
701  return $this->getService( 'BootstrapConfig' );
702  }
703 
708  public function getBotPasswordStore(): BotPasswordStore {
709  return $this->getService( 'BotPasswordStore' );
710  }
711 
716  public function getCentralIdLookup(): CentralIdLookup {
717  return $this->getService( 'CentralIdLookup' );
718  }
719 
724  public function getCentralIdLookupFactory(): CentralIdLookupFactory {
725  return $this->getService( 'CentralIdLookupFactory' );
726  }
727 
732  public function getChangeTagDefStore(): NameTableStore {
733  return $this->getService( 'ChangeTagDefStore' );
734  }
735 
740  public function getCommentStore(): CommentStore {
741  return $this->getService( 'CommentStore' );
742  }
743 
748  public function getConfigFactory(): ConfigFactory {
749  return $this->getService( 'ConfigFactory' );
750  }
751 
756  public function getConfigRepository(): ConfigRepository {
757  return $this->getService( 'ConfigRepository' );
758  }
759 
765  return $this->getService( 'ConfiguredReadOnlyMode' );
766  }
767 
772  public function getContentHandlerFactory(): IContentHandlerFactory {
773  return $this->getService( 'ContentHandlerFactory' );
774  }
775 
780  public function getContentLanguage(): Language {
781  return $this->getService( 'ContentLanguage' );
782  }
783 
788  public function getContentModelChangeFactory(): ContentModelChangeFactory {
789  return $this->getService( 'ContentModelChangeFactory' );
790  }
791 
796  public function getContentModelStore(): NameTableStore {
797  return $this->getService( 'ContentModelStore' );
798  }
799 
804  public function getContentTransformer(): ContentTransformer {
805  return $this->getService( 'ContentTransformer' );
806  }
807 
812  public function getContributionsLookup(): ContributionsLookup {
813  return $this->getService( 'ContributionsLookup' );
814  }
815 
820  public function getCriticalSectionProvider(): CriticalSectionProvider {
821  return $this->getService( 'CriticalSectionProvider' );
822  }
823 
828  public function getCryptHKDF(): CryptHKDF {
829  return $this->getService( 'CryptHKDF' );
830  }
831 
836  public function getDatabaseBlockStore(): DatabaseBlockStore {
837  return $this->getService( 'DatabaseBlockStore' );
838  }
839 
845  return $this->getService( 'DateFormatterFactory' );
846  }
847 
852  public function getDBLoadBalancer(): ILoadBalancer {
853  return $this->getService( 'DBLoadBalancer' );
854  }
855 
860  public function getDBLoadBalancerFactory(): LBFactory {
861  return $this->getService( 'DBLoadBalancerFactory' );
862  }
863 
868  public function getEmailer(): IEmailer {
869  return $this->getService( 'Emailer' );
870  }
871 
877  return $this->getService( 'EventRelayerGroup' );
878  }
879 
885  return $this->getService( 'ExternalStoreAccess' );
886  }
887 
893  return $this->getService( 'ExternalStoreFactory' );
894  }
895 
901  return $this->getService( 'FileBackendGroup' );
902  }
903 
908  public function getGenderCache(): GenderCache {
909  return $this->getService( 'GenderCache' );
910  }
911 
916  public function getGlobalIdGenerator(): GlobalIdGenerator {
917  return $this->getService( 'GlobalIdGenerator' );
918  }
919 
924  public function getGroupPermissionsLookup(): GroupPermissionsLookup {
925  return $this->getService( 'GroupPermissionsLookup' );
926  }
927 
932  public function getHookContainer(): HookContainer {
933  return $this->getService( 'HookContainer' );
934  }
935 
941  return $this->getService( 'HtmlCacheUpdater' );
942  }
943 
948  public function getHttpRequestFactory(): HttpRequestFactory {
949  return $this->getService( 'HttpRequestFactory' );
950  }
951 
956  public function getInterwikiLookup(): InterwikiLookup {
957  return $this->getService( 'InterwikiLookup' );
958  }
959 
964  public function getJobQueueGroup(): JobQueueGroup {
965  return $this->getService( 'JobQueueGroup' );
966  }
967 
972  public function getJobQueueGroupFactory(): JobQueueGroupFactory {
973  return $this->getService( 'JobQueueGroupFactory' );
974  }
975 
980  public function getJobRunner(): JobRunner {
981  return $this->getService( 'JobRunner' );
982  }
983 
988  public function getJsonCodec(): JsonCodec {
989  return $this->getService( 'JsonCodec' );
990  }
991 
996  public function getLanguageConverterFactory(): LanguageConverterFactory {
997  return $this->getService( 'LanguageConverterFactory' );
998  }
999 
1004  public function getLanguageFactory(): LanguageFactory {
1005  return $this->getService( 'LanguageFactory' );
1006  }
1007 
1012  public function getLanguageFallback(): LanguageFallback {
1013  return $this->getService( 'LanguageFallback' );
1014  }
1015 
1020  public function getLanguageNameUtils(): LanguageNameUtils {
1021  return $this->getService( 'LanguageNameUtils' );
1022  }
1023 
1028  public function getLinkBatchFactory(): LinkBatchFactory {
1029  return $this->getService( 'LinkBatchFactory' );
1030  }
1031 
1036  public function getLinkCache(): LinkCache {
1037  return $this->getService( 'LinkCache' );
1038  }
1039 
1047  public function getLinkRenderer(): LinkRenderer {
1048  return $this->getService( 'LinkRenderer' );
1049  }
1050 
1055  public function getLinkRendererFactory(): LinkRendererFactory {
1056  return $this->getService( 'LinkRendererFactory' );
1057  }
1058 
1064  return $this->getService( 'LocalisationCache' );
1065  }
1066 
1077  return $this->getService( 'LocalServerObjectCache' );
1078  }
1079 
1084  public function getLockManagerGroupFactory(): LockManagerGroupFactory {
1085  return $this->getService( 'LockManagerGroupFactory' );
1086  }
1087 
1093  return $this->getService( 'MagicWordFactory' );
1094  }
1095 
1103  public function getMainConfig(): Config {
1104  return $this->getService( 'MainConfig' );
1105  }
1106 
1115  public function getMainObjectStash(): BagOStuff {
1116  return $this->getService( 'MainObjectStash' );
1117  }
1118 
1128  return $this->getService( 'MainWANObjectCache' );
1129  }
1130 
1136  return $this->getService( 'MediaHandlerFactory' );
1137  }
1138 
1143  public function getMergeHistoryFactory(): MergeHistoryFactory {
1144  return $this->getService( 'MergeHistoryFactory' );
1145  }
1146 
1151  public function getMessageCache(): MessageCache {
1152  return $this->getService( 'MessageCache' );
1153  }
1154 
1159  public function getMessageFormatterFactory(): IMessageFormatterFactory {
1160  return $this->getService( 'MessageFormatterFactory' );
1161  }
1162 
1167  public function getMimeAnalyzer(): MimeAnalyzer {
1168  return $this->getService( 'MimeAnalyzer' );
1169  }
1170 
1175  public function getMovePageFactory(): MovePageFactory {
1176  return $this->getService( 'MovePageFactory' );
1177  }
1178 
1183  public function getNamespaceInfo(): NamespaceInfo {
1184  return $this->getService( 'NamespaceInfo' );
1185  }
1186 
1191  public function getNameTableStoreFactory(): NameTableStoreFactory {
1192  return $this->getService( 'NameTableStoreFactory' );
1193  }
1194 
1202  public function getObjectFactory(): ObjectFactory {
1203  return $this->getService( 'ObjectFactory' );
1204  }
1205 
1211  return $this->getService( 'OldRevisionImporter' );
1212  }
1213 
1218  public function getPageEditStash(): PageEditStash {
1219  return $this->getService( 'PageEditStash' );
1220  }
1221 
1226  public function getPageProps(): PageProps {
1227  return $this->getService( 'PageProps' );
1228  }
1229 
1234  public function getPageStore(): PageStore {
1235  return $this->getService( 'PageStore' );
1236  }
1237 
1242  public function getPageStoreFactory(): PageStoreFactory {
1243  return $this->getService( 'PageStoreFactory' );
1244  }
1245 
1250  public function getPageUpdaterFactory(): PageUpdaterFactory {
1251  return $this->getService( 'PageUpdaterFactory' );
1252  }
1253 
1258  public function getParser(): Parser {
1259  return $this->getService( 'Parser' );
1260  }
1261 
1266  public function getParserCache(): ParserCache {
1267  return $this->getService( 'ParserCache' );
1268  }
1269 
1274  public function getParserCacheFactory(): ParserCacheFactory {
1275  return $this->getService( 'ParserCacheFactory' );
1276  }
1277 
1282  public function getParserFactory(): ParserFactory {
1283  return $this->getService( 'ParserFactory' );
1284  }
1285 
1290  public function getParserOutputAccess(): ParserOutputAccess {
1291  return $this->getService( 'ParserOutputAccess' );
1292  }
1293 
1299  return $this->getService( 'PasswordFactory' );
1300  }
1301 
1306  public function getPasswordReset(): PasswordReset {
1307  return $this->getService( 'PasswordReset' );
1308  }
1309 
1314  public function getPerDbNameStatsdDataFactory(): StatsdDataFactoryInterface {
1315  return $this->getService( 'PerDbNameStatsdDataFactory' );
1316  }
1317 
1322  public function getPermissionManager(): PermissionManager {
1323  return $this->getService( 'PermissionManager' );
1324  }
1325 
1330  public function getPreferencesFactory(): PreferencesFactory {
1331  return $this->getService( 'PreferencesFactory' );
1332  }
1333 
1338  public function getProxyLookup(): ProxyLookup {
1339  return $this->getService( 'ProxyLookup' );
1340  }
1341 
1346  public function getReadOnlyMode(): ReadOnlyMode {
1347  return $this->getService( 'ReadOnlyMode' );
1348  }
1349 
1354  public function getRepoGroup(): RepoGroup {
1355  return $this->getService( 'RepoGroup' );
1356  }
1357 
1362  public function getResourceLoader(): ResourceLoader {
1363  return $this->getService( 'ResourceLoader' );
1364  }
1365 
1370  public function getRevertedTagUpdateManager(): RevertedTagUpdateManager {
1371  return $this->getService( 'RevertedTagUpdateManager' );
1372  }
1373 
1378  public function getRevisionFactory(): RevisionFactory {
1379  return $this->getService( 'RevisionFactory' );
1380  }
1381 
1386  public function getRevisionLookup(): RevisionLookup {
1387  return $this->getService( 'RevisionLookup' );
1388  }
1389 
1394  public function getRevisionRenderer(): RevisionRenderer {
1395  return $this->getService( 'RevisionRenderer' );
1396  }
1397 
1402  public function getRevisionStore(): RevisionStore {
1403  return $this->getService( 'RevisionStore' );
1404  }
1405 
1410  public function getRevisionStoreFactory(): RevisionStoreFactory {
1411  return $this->getService( 'RevisionStoreFactory' );
1412  }
1413 
1418  public function getRollbackPageFactory(): RollbackPageFactory {
1419  return $this->getService( 'RollbackPageFactory' );
1420  }
1421 
1426  public function newSearchEngine(): SearchEngine {
1427  // New engine object every time, since they keep state
1428  return $this->getService( 'SearchEngineFactory' )->create();
1429  }
1430 
1436  return $this->getService( 'SearchEngineConfig' );
1437  }
1438 
1444  return $this->getService( 'SearchEngineFactory' );
1445  }
1446 
1451  public function getShellboxClientFactory(): ShellboxClientFactory {
1452  return $this->getService( 'ShellboxClientFactory' );
1453  }
1454 
1459  public function getShellCommandFactory(): CommandFactory {
1460  return $this->getService( 'ShellCommandFactory' );
1461  }
1462 
1467  public function getSiteLookup(): SiteLookup {
1468  return $this->getService( 'SiteLookup' );
1469  }
1470 
1475  public function getSiteStore(): SiteStore {
1476  return $this->getService( 'SiteStore' );
1477  }
1478 
1483  public function getSkinFactory(): SkinFactory {
1484  return $this->getService( 'SkinFactory' );
1485  }
1486 
1491  public function getSlotRoleRegistry(): SlotRoleRegistry {
1492  return $this->getService( 'SlotRoleRegistry' );
1493  }
1494 
1499  public function getSlotRoleStore(): NameTableStore {
1500  return $this->getService( 'SlotRoleStore' );
1501  }
1502 
1507  public function getSpamChecker(): SpamChecker {
1508  return $this->getService( 'SpamChecker' );
1509  }
1510 
1515  public function getSpecialPageFactory(): SpecialPageFactory {
1516  return $this->getService( 'SpecialPageFactory' );
1517  }
1518 
1524  return $this->getService( 'StatsdDataFactory' );
1525  }
1526 
1531  public function getTalkPageNotificationManager(): TalkPageNotificationManager {
1532  return $this->getService( 'TalkPageNotificationManager' );
1533  }
1534 
1539  public function getTempFSFileFactory(): TempFSFileFactory {
1540  return $this->getService( 'TempFSFileFactory' );
1541  }
1542 
1547  public function getTidy(): TidyDriverBase {
1548  return $this->getService( 'Tidy' );
1549  }
1550 
1555  public function getTitleFactory(): TitleFactory {
1556  return $this->getService( 'TitleFactory' );
1557  }
1558 
1563  public function getTitleFormatter(): TitleFormatter {
1564  return $this->getService( 'TitleFormatter' );
1565  }
1566 
1571  public function getTitleParser(): TitleParser {
1572  return $this->getService( 'TitleParser' );
1573  }
1574 
1579  public function getUnblockUserFactory(): UnblockUserFactory {
1580  return $this->getService( 'UnblockUserFactory' );
1581  }
1582 
1588  return $this->getService( 'UploadRevisionImporter' );
1589  }
1590 
1595  public function getUserCache(): UserCache {
1596  return $this->getService( 'UserCache' );
1597  }
1598 
1603  public function getUserEditTracker(): UserEditTracker {
1604  return $this->getService( 'UserEditTracker' );
1605  }
1606 
1611  public function getUserFactory(): UserFactory {
1612  return $this->getService( 'UserFactory' );
1613  }
1614 
1619  public function getUserGroupManager(): UserGroupManager {
1620  return $this->getService( 'UserGroupManager' );
1621  }
1622 
1627  public function getUserGroupManagerFactory(): UserGroupManagerFactory {
1628  return $this->getService( 'UserGroupManagerFactory' );
1629  }
1630 
1635  public function getUserIdentityLookup(): UserIdentityLookup {
1636  return $this->getService( 'UserIdentityLookup' );
1637  }
1638 
1644  return $this->getService( 'UserNamePrefixSearch' );
1645  }
1646 
1651  public function getUserNameUtils(): UserNameUtils {
1652  return $this->getService( 'UserNameUtils' );
1653  }
1654 
1659  public function getUserOptionsLookup(): UserOptionsLookup {
1660  return $this->getService( 'UserOptionsLookup' );
1661  }
1662 
1667  public function getUserOptionsManager(): UserOptionsManager {
1668  return $this->getService( 'UserOptionsManager' );
1669  }
1670 
1676  return $this->getService( 'VirtualRESTServiceClient' );
1677  }
1678 
1684  return $this->getService( 'WatchedItemQueryService' );
1685  }
1686 
1692  return $this->getService( 'WatchedItemStore' );
1693  }
1694 
1700  public function getWatchlistNotificationManager(): WatchlistManager {
1701  wfDeprecated( __METHOD__, '1.36' );
1702  return $this->getWatchlistManager();
1703  }
1704 
1709  public function getWatchlistManager(): WatchlistManager {
1710  return $this->getService( 'WatchlistManager' );
1711  }
1712 
1718  return $this->getService( 'WikiImporterFactory' );
1719  }
1720 
1725  public function getWikiPageFactory(): WikiPageFactory {
1726  return $this->getService( 'WikiPageFactory' );
1727  }
1728 
1734  return $this->getService( 'OldRevisionImporter' );
1735  }
1736 
1742  return $this->getService( 'WikiRevisionOldRevisionImporterNoUpdates' );
1743  }
1744 
1750  return $this->getService( 'UploadRevisionImporter' );
1751  }
1752 
1753 }
MediaWiki\MediaWikiServices\getJobQueueGroup
getJobQueueGroup()
Definition: MediaWikiServices.php:964
EventRelayerGroup
Factory class for spawning EventRelayer objects using configuration.
Definition: EventRelayerGroup.php:26
MediaWiki\MediaWikiServices\getMessageCache
getMessageCache()
Definition: MediaWikiServices.php:1151
MediaWiki\MediaWikiServices\getBlockErrorFormatter
getBlockErrorFormatter()
Definition: MediaWikiServices.php:643
ObjectCache\clear
static clear()
Clear all the cached instances.
Definition: ObjectCache.php:281
ObjectCache
Functions to get cache objects.
Definition: ObjectCache.php:64
LinkCache
Cache for article titles (prefixed DB keys) and ids linked from one source.
Definition: LinkCache.php:40
MediaWiki\MediaWikiServices\getShellCommandFactory
getShellCommandFactory()
Definition: MediaWikiServices.php:1459
MediaWiki\Block\BlockPermissionCheckerFactory
Factory class for BlockPermissionChecker.
Definition: BlockPermissionCheckerFactory.php:33
MediaWiki\MediaWikiServices\getInterwikiLookup
getInterwikiLookup()
Definition: MediaWikiServices.php:956
MediaWiki\Block\BlockUserFactory
Definition: BlockUserFactory.php:30
MediaWiki\MediaWikiServices\getSpamChecker
getSpamChecker()
Definition: MediaWikiServices.php:1507
MediaWiki\MediaWikiServices\getResourceLoader
getResourceLoader()
Definition: MediaWikiServices.php:1362
MediaWiki\MediaWikiServices\getSearchEngineConfig
getSearchEngineConfig()
Definition: MediaWikiServices.php:1435
UploadRevisionImporter
Definition: UploadRevisionImporter.php:6
Wikimedia\UUID\GlobalIdGenerator
Class for getting statistically unique IDs without a central coordinator.
Definition: GlobalIdGenerator.php:34
FileBackendGroup
Class to handle file backend registration.
Definition: FileBackendGroup.php:37
MediaWiki\MediaWikiServices\getCentralIdLookup
getCentralIdLookup()
Definition: MediaWikiServices.php:716
MagicWordFactory
A factory that stores information about MagicWords, and creates them on demand with caching.
Definition: MagicWordFactory.php:37
MediaWiki\MediaWikiServices\getSiteLookup
getSiteLookup()
Definition: MediaWikiServices.php:1467
MediaWiki\MediaWikiServices\getParserFactory
getParserFactory()
Definition: MediaWikiServices.php:1282
MediaWiki\MediaWikiServices\getBlockManager
getBlockManager()
Definition: MediaWikiServices.php:651
MediaWiki\MediaWikiServices\getJobRunner
getJobRunner()
Definition: MediaWikiServices.php:980
UserCache
Definition: UserCache.php:32
MediaWiki\Block\BlockManager
A service class for checking blocks.
Definition: BlockManager.php:47
MediaWiki\MediaWikiServices\getBlockRestrictionStore
getBlockRestrictionStore()
Definition: MediaWikiServices.php:667
MediaWiki\MediaWikiServices\getDBLoadBalancer
getDBLoadBalancer()
Definition: MediaWikiServices.php:852
MediaWiki\Permissions\GroupPermissionsLookup
Definition: GroupPermissionsLookup.php:30
MediaWiki\MediaWikiServices\getRollbackPageFactory
getRollbackPageFactory()
Definition: MediaWikiServices.php:1418
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition: MediaWikiServices.php:186
MimeAnalyzer
Implements functions related to MIME types such as detection and mapping to file extension.
Definition: MimeAnalyzer.php:33
Page\ParserOutputAccess
Service for getting rendered output of a given page.
Definition: ParserOutputAccess.php:50
MediaWiki\Revision\RevisionStore
Service for looking up page revisions.
Definition: RevisionStore.php:88
MediaWiki\Block\BlockErrorFormatter
A service class for getting formatted information about a block.
Definition: BlockErrorFormatter.php:36
MediaWiki\Http\HttpRequestFactory
Factory creating MWHttpRequest objects.
Definition: HttpRequestFactory.php:39
MediaWiki\MediaWikiServices\getContentModelStore
getContentModelStore()
Definition: MediaWikiServices.php:796
MediaWiki\MediaWikiServices\getChangeTagDefStore
getChangeTagDefStore()
Definition: MediaWikiServices.php:732
MediaWiki\MediaWikiServices\getLanguageConverterFactory
getLanguageConverterFactory()
Definition: MediaWikiServices.php:996
MediaWiki\Languages\LanguageFactory
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition: LanguageFactory.php:42
MediaWiki\Linker\LinkRenderer
Class that generates HTML links for pages.
Definition: LinkRenderer.php:43
MediaWiki\MediaWikiServices\getBlockPermissionCheckerFactory
getBlockPermissionCheckerFactory()
Definition: MediaWikiServices.php:659
MediaWiki\MediaWikiServices\getRevisionLookup
getRevisionLookup()
Definition: MediaWikiServices.php:1386
MediaWiki\Block\BlockUtils
Backend class for blocking utils.
Definition: BlockUtils.php:45
MediaWiki\SpecialPage\SpecialPageFactory
Factory for handling the special page list and generating SpecialPage objects.
Definition: SpecialPageFactory.php:63
ReadOnlyMode
A service class for fetching the wiki's current read-only mode.
Definition: ReadOnlyMode.php:11
MediaWiki\MediaWikiServices\getWatchlistManager
getWatchlistManager()
Definition: MediaWikiServices.php:1709
MediaWiki\MediaWikiServices\getContentTransformer
getContentTransformer()
Definition: MediaWikiServices.php:804
MediaWiki\MediaWikiServices\getActorStoreFactory
getActorStoreFactory()
Definition: MediaWikiServices.php:595
MediaWiki\MediaWikiServices\getBootstrapConfig
getBootstrapConfig()
Returns the Config object containing the bootstrap configuration.
Definition: MediaWikiServices.php:700
MediaWiki\FileBackend\LockManager\LockManagerGroupFactory
Service to construct LockManagerGroups.
Definition: LockManagerGroupFactory.php:11
MediaWiki\MediaWikiServices\getCommentStore
getCommentStore()
Definition: MediaWikiServices.php:740
MediaWiki\MediaWikiServices\getGlobalIdGenerator
getGlobalIdGenerator()
Definition: MediaWikiServices.php:916
MediaWiki\MediaWikiServices\getPageUpdaterFactory
getPageUpdaterFactory()
Definition: MediaWikiServices.php:1250
MediaWiki\MediaWikiServices\getSlotRoleStore
getSlotRoleStore()
Definition: MediaWikiServices.php:1499
Page\RollbackPageFactory
Definition: RollbackPageFactory.php:32
GenderCache
Caches user genders when needed to use correct namespace aliases.
Definition: GenderCache.php:36
MediaWiki\Languages\LanguageFallback
Definition: LanguageFallback.php:31
ConfiguredReadOnlyMode
A read-only mode service which does not depend on LoadBalancer.
Definition: ConfiguredReadOnlyMode.php:9
CommentStore
Handle database storage of comments such as edit summaries and log reasons.
Definition: CommentStore.php:42
MediaWiki\MediaWikiServices\getExternalStoreAccess
getExternalStoreAccess()
Definition: MediaWikiServices.php:884
MediaWiki\MediaWikiServices\getUserNamePrefixSearch
getUserNamePrefixSearch()
Definition: MediaWikiServices.php:1643
MediaWiki\MediaWikiServices\getUserOptionsManager
getUserOptionsManager()
Definition: MediaWikiServices.php:1667
BagOStuff
Class representing a cache/ephemeral data store.
Definition: BagOStuff.php:86
MediaWiki\Linker\LinkRendererFactory
Factory to create LinkRender objects.
Definition: LinkRendererFactory.php:34
SearchEngineFactory
Factory class for SearchEngine.
Definition: SearchEngineFactory.php:12
MediaWiki\Revision\RevisionFactory
Service for constructing RevisionRecord objects.
Definition: RevisionFactory.php:37
MediaWiki\MediaWikiServices\getActorMigration
getActorMigration()
Definition: MediaWikiServices.php:571
MediaWiki\MediaWikiServices\getJsonCodec
getJsonCodec()
Definition: MediaWikiServices.php:988
ActorMigration
This is not intended to be a long-term part of MediaWiki; it will be deprecated and removed once acto...
Definition: ActorMigration.php:15
MediaWiki\MediaWikiServices\getBlockUtils
getBlockUtils()
Definition: MediaWikiServices.php:683
MediaWiki\MediaWikiServices\getWikiPageFactory
getWikiPageFactory()
Definition: MediaWikiServices.php:1725
MediaWiki\Block\DatabaseBlockStore
Definition: DatabaseBlockStore.php:47
Parser\ParserCacheFactory
Definition: ParserCacheFactory.php:40
MediaWiki\MediaWikiServices\getPermissionManager
getPermissionManager()
Definition: MediaWikiServices.php:1322
MediaWiki\MediaWikiServices\getLanguageFallback
getLanguageFallback()
Definition: MediaWikiServices.php:1012
MediaWiki\MediaWikiServices\getGenderCache
getGenderCache()
Definition: MediaWikiServices.php:908
MediaWiki\User\ActorStoreFactory
Definition: ActorStoreFactory.php:35
MediaWiki\MediaWikiServices\getEventRelayerGroup
getEventRelayerGroup()
Definition: MediaWikiServices.php:876
MediaWiki\MediaWikiServices\getLockManagerGroupFactory
getLockManagerGroupFactory()
Definition: MediaWikiServices.php:1084
MediaWiki\Languages\LanguageConverterFactory
An interface for creating language converters.
Definition: LanguageConverterFactory.php:46
SiteLookup
Definition: SiteLookup.php:28
MediaWiki\Revision\RevisionLookup
Service for looking up page revisions.
Definition: RevisionLookup.php:38
MediaWiki\MediaWikiServices\getCentralIdLookupFactory
getCentralIdLookupFactory()
Definition: MediaWikiServices.php:724
ExternalStoreAccess
Key/value blob storage for a collection of storage medium types (e.g.
Definition: ExternalStoreAccess.php:22
MediaHandlerFactory
Class to construct MediaHandler objects.
Definition: MediaHandlerFactory.php:31
MediaWiki\MediaWikiServices\getActionFactory
getActionFactory()
Definition: MediaWikiServices.php:563
MediaWiki\User\TalkPageNotificationManager
Manages user talk page notifications.
Definition: TalkPageNotificationManager.php:35
MediaWiki\MediaWikiServices\getOldRevisionImporter
getOldRevisionImporter()
Definition: MediaWikiServices.php:1210
MediaWiki\MediaWikiServices\getPasswordReset
getPasswordReset()
Definition: MediaWikiServices.php:1306
MediaWiki\Languages\LanguageNameUtils
A service that provides utilities to do with language names and codes.
Definition: LanguageNameUtils.php:42
MediaWiki\MediaWikiServices\getUploadRevisionImporter
getUploadRevisionImporter()
Definition: MediaWikiServices.php:1587
MediaWiki\MediaWikiServices\getProxyLookup
getProxyLookup()
Definition: MediaWikiServices.php:1338
MediaWiki\MediaWikiServices\getSkinFactory
getSkinFactory()
Definition: MediaWikiServices.php:1483
SiteStore
Definition: SiteStore.php:29
MediaWiki\MediaWikiServices\failIfResetNotAllowed
static failIfResetNotAllowed( $method)
Convenience method that throws an exception unless it is called during a phase in which resetting of ...
Definition: MediaWikiServices.php:532
MediaWiki\MediaWikiServices\getUserCache
getUserCache()
Definition: MediaWikiServices.php:1595
MediaWiki\MediaWikiServices\getInstance
static getInstance()
Returns the global default instance of the top level service locator.
Definition: MediaWikiServices.php:247
MediaWiki\MediaWikiServices\getWikiImporterFactory
getWikiImporterFactory()
Definition: MediaWikiServices.php:1717
MediaWiki\MediaWikiServices\getLocalisationCache
getLocalisationCache()
Definition: MediaWikiServices.php:1063
Config
Interface for configuration instances.
Definition: Config.php:30
MediaWiki\User\UserGroupManager
Managers user groups.
Definition: UserGroupManager.php:52
MediaWiki\MediaWikiServices\getJobQueueGroupFactory
getJobQueueGroupFactory()
Definition: MediaWikiServices.php:972
Page\MergeHistoryFactory
Definition: MergeHistoryFactory.php:30
MediaWiki\MediaWikiServices\getSpecialPageFactory
getSpecialPageFactory()
Definition: MediaWikiServices.php:1515
MediaWiki\MediaWikiServices\getAuthManager
getAuthManager()
Definition: MediaWikiServices.php:603
MediaWiki\MediaWikiServices\getMagicWordFactory
getMagicWordFactory()
Definition: MediaWikiServices.php:1092
MediaWiki\MediaWikiServices\getPerDbNameStatsdDataFactory
getPerDbNameStatsdDataFactory()
Definition: MediaWikiServices.php:1314
wfDeprecatedMsg
wfDeprecatedMsg( $msg, $version=false, $component=false, $callerOffset=2)
Log a deprecation warning with arbitrary message text.
Definition: GlobalFunctions.php:1028
MWException
MediaWiki exception.
Definition: MWException.php:29
MediaWiki\MediaWikiServices\resetServiceForTesting
resetServiceForTesting( $name, $destroy=true)
Resets the given service for testing purposes.
Definition: MediaWikiServices.php:497
MediaWiki\MediaWikiServices\getCryptHKDF
getCryptHKDF()
Definition: MediaWikiServices.php:828
wfDeprecated
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that $function is deprecated.
Definition: GlobalFunctions.php:996
MediaWiki\MediaWikiServices\resetGlobalInstance
static resetGlobalInstance(Config $bootstrapConfig=null, $quick='')
Creates a new instance of MediaWikiServices and sets it as the global default instance.
Definition: MediaWikiServices.php:341
MediaWiki\MediaWikiServices\getTempFSFileFactory
getTempFSFileFactory()
Definition: MediaWikiServices.php:1539
MediaWiki\MediaWikiServices\getWatchedItemStore
getWatchedItemStore()
Definition: MediaWikiServices.php:1691
MediaWiki\Storage\PageEditStash
Class for managing stashed edits used by the page updater classes.
Definition: PageEditStash.php:48
DateFormatterFactory
Definition: DateFormatterFactory.php:3
MediaWiki\Watchlist\WatchlistManager
WatchlistManager service.
Definition: WatchlistManager.php:52
MediaWiki\MediaWikiServices\getContentHandlerFactory
getContentHandlerFactory()
Definition: MediaWikiServices.php:772
MediaWiki\MediaWikiServices\getMediaHandlerFactory
getMediaHandlerFactory()
Definition: MediaWikiServices.php:1135
Config\get
get( $name)
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
MediaWiki\MediaWikiServices\getRevertedTagUpdateManager
getRevertedTagUpdateManager()
Definition: MediaWikiServices.php:1370
CryptHKDF
Definition: CryptHKDF.php:33
MediaWiki\MediaWikiServices\getWatchedItemQueryService
getWatchedItemQueryService()
Definition: MediaWikiServices.php:1683
MediaWiki\MediaWikiServices\getUserEditTracker
getUserEditTracker()
Definition: MediaWikiServices.php:1603
MediaWiki\Cache\LinkBatchFactory
Definition: LinkBatchFactory.php:39
MediaWiki\MediaWikiServices\getUserFactory
getUserFactory()
Definition: MediaWikiServices.php:1611
MediaWiki\MediaWikiServices\getMergeHistoryFactory
getMergeHistoryFactory()
Definition: MediaWikiServices.php:1143
MediaWiki\MediaWikiServices\getTitleParser
getTitleParser()
Definition: MediaWikiServices.php:1571
WatchedItemQueryService
Definition: WatchedItemQueryService.php:23
ProxyLookup
Definition: ProxyLookup.php:29
VirtualRESTServiceClient
Virtual HTTP service client loosely styled after a Virtual File System.
Definition: VirtualRESTServiceClient.php:45
MediaWiki\Interwiki\InterwikiLookup
Service interface for looking up Interwiki records.
Definition: InterwikiLookup.php:32
MediaWiki\MediaWikiServices\getPageStore
getPageStore()
Definition: MediaWikiServices.php:1234
MediaWiki\User\UserNamePrefixSearch
Handles searching prefixes of user names.
Definition: UserNamePrefixSearch.php:39
MediaWiki\MediaWikiServices\getFileBackendGroup
getFileBackendGroup()
Definition: MediaWikiServices.php:900
MediaWiki
A helper class for throttling authentication attempts.
MediaWiki\MediaWikiServices\getParserCacheFactory
getParserCacheFactory()
Definition: MediaWikiServices.php:1274
MediaWiki\Block\UnblockUserFactory
Definition: UnblockUserFactory.php:30
MediaWiki\Content\Transform\ContentTransformer
A service to transform content.
Definition: ContentTransformer.php:15
MediaWiki\MediaWikiServices\getMessageFormatterFactory
getMessageFormatterFactory()
Definition: MediaWikiServices.php:1159
Page\WikiPageFactory
Definition: WikiPageFactory.php:20
MediaWiki\MediaWikiServices\newSearchEngine
newSearchEngine()
Definition: MediaWikiServices.php:1426
MediaWiki\MediaWikiServices\getMainConfig
getMainConfig()
Returns the Config object that provides configuration for MediaWiki core.
Definition: MediaWikiServices.php:1103
MediaWiki\MediaWikiServices\getObjectFactory
getObjectFactory()
ObjectFactory is intended for instantiating "handlers" from declarative definitions,...
Definition: MediaWikiServices.php:1202
MediaWiki\MediaWikiServices\getSearchEngineFactory
getSearchEngineFactory()
Definition: MediaWikiServices.php:1443
MediaWiki\Actions\ActionFactory
Definition: ActionFactory.php:44
MediaWiki\Storage\BlobStoreFactory
Service for instantiating BlobStores.
Definition: BlobStoreFactory.php:35
GlobalVarConfig
Accesses configuration settings from $GLOBALS.
Definition: GlobalVarConfig.php:29
TitleParser
A title parser service for MediaWiki.
Definition: TitleParser.php:33
MediaWiki\MediaWikiServices\disableStorageBackend
static disableStorageBackend()
Disables all storage layer services.
Definition: MediaWikiServices.php:442
MediaWiki\MediaWikiServices\getPageStoreFactory
getPageStoreFactory()
Definition: MediaWikiServices.php:1242
MediaWiki\MediaWikiServices\getRevisionStoreFactory
getRevisionStoreFactory()
Definition: MediaWikiServices.php:1410
MediaWiki\MediaWikiServices\getUserIdentityLookup
getUserIdentityLookup()
Definition: MediaWikiServices.php:1635
MediaWiki\MediaWikiServices\getDBLoadBalancerFactory
getDBLoadBalancerFactory()
Definition: MediaWikiServices.php:860
MediaWiki\MediaWikiServices\newInstance
static newInstance(Config $bootstrapConfig, $loadWiring='')
Creates a new MediaWikiServices instance and initializes it according to the given $bootstrapConfig.
Definition: MediaWikiServices.php:415
MediaWiki\MediaWikiServices\getTitleFormatter
getTitleFormatter()
Definition: MediaWikiServices.php:1563
MediaWiki\MediaWikiServices\getLinkBatchFactory
getLinkBatchFactory()
Definition: MediaWikiServices.php:1028
MediaWiki\Tidy\TidyDriverBase
Base class for HTML cleanup utilities.
Definition: TidyDriverBase.php:8
MediaWiki\MediaWikiServices\getHttpRequestFactory
getHttpRequestFactory()
Definition: MediaWikiServices.php:948
MediaWiki\MediaWikiServices\getActorStore
getActorStore()
Definition: MediaWikiServices.php:587
MediaWiki\MediaWikiServices\getBlockActionInfo
getBlockActionInfo()
Definition: MediaWikiServices.php:635
MediaWiki\MediaWikiServices\getCriticalSectionProvider
getCriticalSectionProvider()
Definition: MediaWikiServices.php:820
MediaWiki\MediaWikiServices\getRevisionFactory
getRevisionFactory()
Definition: MediaWikiServices.php:1378
MediaWiki\MediaWikiServices\getParserCache
getParserCache()
Definition: MediaWikiServices.php:1266
MediaWiki\MediaWikiServices\salvage
salvage(self $other)
@noinspection PhpDocSignatureInspection
Definition: MediaWikiServices.php:379
MediaWiki\FileBackend\FSFile\TempFSFileFactory
Definition: TempFSFileFactory.php:10
MediaWiki\MediaWikiServices\getPreferencesFactory
getPreferencesFactory()
Definition: MediaWikiServices.php:1330
MediaWiki\MediaWikiServices\__construct
__construct(Config $config)
Definition: MediaWikiServices.php:548
MediaWiki\MediaWikiServices\getContentModelChangeFactory
getContentModelChangeFactory()
Definition: MediaWikiServices.php:788
UserNamePrefixSearch
Handles searching prefixes of user names.
Definition: UserNamePrefixSearch_deprecated.php:37
MediaWiki\User\UserGroupManagerFactory
Factory service for UserGroupManager instances.
Definition: UserGroupManagerFactory.php:37
MediaWiki\User\UserIdentityLookup
Definition: UserIdentityLookup.php:33
ExternalStoreFactory
Definition: ExternalStoreFactory.php:14
MediaWiki\Revision\RevisionRenderer
The RevisionRenderer service provides access to rendered output for revisions.
Definition: RevisionRenderer.php:45
MediaWiki\Permissions\PermissionManager
A service class for checking permissions To obtain an instance, use MediaWikiServices::getInstance()-...
Definition: PermissionManager.php:53
MediaWiki\MediaWikiServices\getPasswordFactory
getPasswordFactory()
Definition: MediaWikiServices.php:1298
ParserFactory
Definition: ParserFactory.php:36
MediaWiki\MediaWikiServices\getService
getService( $name)
Definition: MediaWikiServices.php:269
MediaWiki\MediaWikiServices\getPageEditStash
getPageEditStash()
Definition: MediaWikiServices.php:1218
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporterNoUpdates
getWikiRevisionOldRevisionImporterNoUpdates()
Definition: MediaWikiServices.php:1741
MediaWiki\User\BotPasswordStore
Definition: BotPasswordStore.php:44
MediaWiki\MediaWikiServices\getHtmlCacheUpdater
getHtmlCacheUpdater()
Definition: MediaWikiServices.php:940
MediaWiki\Content\IContentHandlerFactory
Definition: IContentHandlerFactory.php:10
MediaWiki\MediaWikiServices\getVirtualRESTServiceClient
getVirtualRESTServiceClient()
Definition: MediaWikiServices.php:1675
SkinFactory
Factory class to create Skin objects.
Definition: SkinFactory.php:31
MediaWiki\EditPage\SpamChecker
Service to check if text (either content or a summary) qualifies as spam.
Definition: SpamChecker.php:14
MediaWiki\MediaWikiServices\getBadFileLookup
getBadFileLookup()
Definition: MediaWikiServices.php:611
MediaWiki\MediaWikiServices\getConfigFactory
getConfigFactory()
Definition: MediaWikiServices.php:748
MediaWiki\JobQueue\JobQueueGroupFactory
Class to construct JobQueueGroups.
Definition: JobQueueGroupFactory.php:37
MediaWiki\Shell\CommandFactory
Factory facilitating dependency injection for Command.
Definition: CommandFactory.php:35
MediaWiki\MediaWikiServices\getWikiRevisionUploadImporter
getWikiRevisionUploadImporter()
Definition: MediaWikiServices.php:1749
MediaWiki\Preferences\PreferencesFactory
A PreferencesFactory is a MediaWiki service that provides the definitions of preferences for a given ...
Definition: PreferencesFactory.php:54
MediaWiki\MediaWikiServices\getTidy
getTidy()
Definition: MediaWikiServices.php:1547
WANObjectCache
Multi-datacenter aware caching interface.
Definition: WANObjectCache.php:128
MediaWiki\MediaWikiServices\getUserNameUtils
getUserNameUtils()
Definition: MediaWikiServices.php:1651
MediaWiki\MediaWikiServices\getUserGroupManagerFactory
getUserGroupManagerFactory()
Definition: MediaWikiServices.php:1627
HtmlCacheUpdater
Class to invalidate the CDN and HTMLFileCache entries associated with URLs/titles.
Definition: HtmlCacheUpdater.php:32
MediaWiki\MediaWikiServices\getRevisionRenderer
getRevisionRenderer()
Definition: MediaWikiServices.php:1394
MediaWiki\MediaWikiServices\getUserOptionsLookup
getUserOptionsLookup()
Definition: MediaWikiServices.php:1659
MediaWiki\User\CentralId\CentralIdLookupFactory
Definition: CentralIdLookupFactory.php:34
MediaWiki\MediaWikiServices\getContributionsLookup
getContributionsLookup()
Definition: MediaWikiServices.php:812
LocalisationCache
Class for caching the contents of localisation files, Messages*.php and *.i18n.php.
Definition: LocalisationCache.php:43
MediaWiki\Config\ConfigRepository
Object which holds currently registered configuration options.
Definition: ConfigRepository.php:33
MediaWiki\MediaWikiServices\hasInstance
static hasInstance()
Returns true if an instance has already been initialized.
Definition: MediaWikiServices.php:227
MediaWiki\Storage\NameTableStore
Definition: NameTableStore.php:36
MediaWiki\Block\BlockActionInfo
Defines the actions that can be blocked by a partial block.
Definition: BlockActionInfo.php:40
MediaWiki\MediaWikiServices\getExternalStoreFactory
getExternalStoreFactory()
Definition: MediaWikiServices.php:892
Parser
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...
Definition: Parser.php:89
MediaWiki\Revision\RevisionStoreFactory
Factory service for RevisionStore instances.
Definition: RevisionStoreFactory.php:55
MediaWiki\Shell\ShellboxClientFactory
This is a service which provides a configured client to access a remote Shellbox installation.
Definition: ShellboxClientFactory.php:15
MediaWiki\User\UserOptionsLookup
Provides access to user options.
Definition: UserOptionsLookup.php:29
MediaWiki\MediaWikiServices\getDateFormatterFactory
getDateFormatterFactory()
Definition: MediaWikiServices.php:844
Page\MovePageFactory
Definition: MovePageFactory.php:30
SearchEngine
Contain a class for special pages.
Definition: SearchEngine.php:37
MediaWiki\MediaWikiServices\getTitleFactory
getTitleFactory()
Definition: MediaWikiServices.php:1555
MediaWiki\Auth\AuthManager
This serves as the entry point to the authentication system.
Definition: AuthManager.php:98
MediaWiki\Storage\BlobStore
Service for loading and storing data blobs.
Definition: BlobStore.php:35
MediaWiki\Revision\ContributionsLookup
Definition: ContributionsLookup.php:23
MediaWiki\User\UserOptionsManager
A service class to control user options.
Definition: UserOptionsManager.php:43
MediaWiki\MediaWikiServices\getMainWANObjectCache
getMainWANObjectCache()
Returns the main WAN cache, yielding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:1127
MediaWiki\MediaWikiServices\getMimeAnalyzer
getMimeAnalyzer()
Definition: MediaWikiServices.php:1167
IBufferingStatsdDataFactory
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
Definition: IBufferingStatsdDataFactory.php:13
MediaWiki\MediaWikiServices\getSiteStore
getSiteStore()
Definition: MediaWikiServices.php:1475
MediaWiki\MediaWikiServices\getBlobStore
getBlobStore()
Definition: MediaWikiServices.php:619
MediaWiki\MediaWikiServices\getBotPasswordStore
getBotPasswordStore()
Definition: MediaWikiServices.php:708
Wikimedia\Message\IMessageFormatterFactory
A simple factory providing a message formatter for a given language code.
Definition: IMessageFormatterFactory.php:10
MediaWiki\MediaWikiServices\getUnblockUserFactory
getUnblockUserFactory()
Definition: MediaWikiServices.php:1579
MediaWiki\MediaWikiServices\getLocalServerObjectCache
getLocalServerObjectCache()
Returns the main server-local cache, yielding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:1076
MediaWiki\MediaWikiServices\getMovePageFactory
getMovePageFactory()
Definition: MediaWikiServices.php:1175
ResourceLoader
ResourceLoader is a loading system for JavaScript and CSS resources.
Definition: ResourceLoader.php:58
OldRevisionImporter
Definition: OldRevisionImporter.php:6
MediaWiki\MediaWikiServices\getBlobStoreFactory
getBlobStoreFactory()
Definition: MediaWikiServices.php:627
MediaWiki\MediaWikiServices\getConfiguredReadOnlyMode
getConfiguredReadOnlyMode()
Definition: MediaWikiServices.php:764
MediaWiki\MediaWikiServices\getLanguageFactory
getLanguageFactory()
Definition: MediaWikiServices.php:1004
MediaWiki\MediaWikiServices\getRevisionStore
getRevisionStore()
Definition: MediaWikiServices.php:1402
MediaWiki\MediaWikiServices\getParserOutputAccess
getParserOutputAccess()
Definition: MediaWikiServices.php:1290
MediaWiki\User\UserEditTracker
Track info about user edit counts and timings.
Definition: UserEditTracker.php:21
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporter
getWikiRevisionOldRevisionImporter()
Definition: MediaWikiServices.php:1733
PageProps
Gives access to properties of a page.
Definition: PageProps.php:33
MediaWiki\MediaWikiServices\allowGlobalInstance
static allowGlobalInstance()
Allows a global service container instance to exist.
Definition: MediaWikiServices.php:210
MediaWiki\MediaWikiServices\getGroupPermissionsLookup
getGroupPermissionsLookup()
Definition: MediaWikiServices.php:924
MediaWiki\User\UserNameUtils
UserNameUtils service.
Definition: UserNameUtils.php:42
CentralIdLookup
The CentralIdLookup service allows for connecting local users with cluster-wide IDs.
Definition: CentralIdLookup.php:35
MediaWiki\MediaWikiServices\getParser
getParser()
Definition: MediaWikiServices.php:1258
MediaWiki\MediaWikiServices\getLanguageNameUtils
getLanguageNameUtils()
Definition: MediaWikiServices.php:1020
MediaWiki\MediaWikiServices\getDatabaseBlockStore
getDatabaseBlockStore()
Definition: MediaWikiServices.php:836
MediaWiki\MediaWikiServices\getNamespaceInfo
getNamespaceInfo()
Definition: MediaWikiServices.php:1183
MediaWiki\MediaWikiServices\resetChildProcessServices
static resetChildProcessServices()
Resets any services that may have become stale after a child process returns from after pcntl_fork().
Definition: MediaWikiServices.php:466
MediaWiki\MediaWikiServices\getSlotRoleRegistry
getSlotRoleRegistry()
Definition: MediaWikiServices.php:1491
TitleFormatter
A title formatter service for MediaWiki.
Definition: TitleFormatter.php:35
MediaWiki\MediaWikiServices\getActorNormalization
getActorNormalization()
Definition: MediaWikiServices.php:579
Wikimedia\Rdbms\LBFactory
An interface for generating database load balancers.
Definition: LBFactory.php:42
MediaWiki\MediaWikiServices\getContentLanguage
getContentLanguage()
Definition: MediaWikiServices.php:780
TitleFactory
Creates Title objects.
Definition: TitleFactory.php:35
MediaWiki\MediaWikiServices\getConfigRepository
getConfigRepository()
Definition: MediaWikiServices.php:756
Page\ContentModelChangeFactory
Definition: ContentModelChangeFactory.php:32
MediaWiki\Mail\IEmailer
Interface for sending emails.
Definition: IEmailer.php:34
RepoGroup
Prioritized list of file repositories.
Definition: RepoGroup.php:33
ParserCache
Cache for ParserOutput objects corresponding to the latest page revisions.
Definition: ParserCache.php:63
ConfigFactory
Factory class to create Config objects.
Definition: ConfigFactory.php:31
MediaWiki\Storage\PageUpdaterFactory
A factory for PageUpdater instances.
Definition: PageUpdaterFactory.php:52
MediaWiki\Storage\NameTableStoreFactory
Definition: NameTableStoreFactory.php:26
SearchEngineConfig
Configuration handling class for SearchEngine.
Definition: SearchEngineConfig.php:12
MediaWiki\MediaWikiServices\getPageProps
getPageProps()
Definition: MediaWikiServices.php:1226
MediaWiki\Revision\SlotRoleRegistry
A registry service for SlotRoleHandlers, used to define which slot roles are available on which page.
Definition: SlotRoleRegistry.php:48
MediaWiki\MediaWikiServices\getEmailer
getEmailer()
Definition: MediaWikiServices.php:868
MediaWiki\HookContainer\HookContainer
HookContainer class.
Definition: HookContainer.php:45
PasswordFactory
Factory class for creating and checking Password objects.
Definition: PasswordFactory.php:30
NamespaceInfo
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
Definition: NamespaceInfo.php:35
MediaWiki\HookContainer\HookRunner
This class provides an implementation of the core hook interfaces, forwarding hook calls to HookConta...
Definition: HookRunner.php:555
MediaWiki\MediaWikiServices\getLinkRendererFactory
getLinkRendererFactory()
Definition: MediaWikiServices.php:1055
MediaWiki\MediaWikiServices\getBlockUserFactory
getBlockUserFactory()
Definition: MediaWikiServices.php:675
WikiImporterFactory
Factory service for WikiImporter instances.
Definition: WikiImporterFactory.php:33
MediaWiki\MediaWikiServices\getUserGroupManager
getUserGroupManager()
Definition: MediaWikiServices.php:1619
MediaWiki\Json\JsonCodec
Definition: JsonCodec.php:36
JobRunner
Job queue runner utility methods.
Definition: JobRunner.php:41
MediaWiki\MediaWikiServices\getTalkPageNotificationManager
getTalkPageNotificationManager()
Definition: MediaWikiServices.php:1531
MediaWiki\MediaWikiServices\getLinkRenderer
getLinkRenderer()
LinkRenderer instance that can be used if no custom options are needed.
Definition: MediaWikiServices.php:1047
MediaWiki\MediaWikiServices\getHookContainer
getHookContainer()
Definition: MediaWikiServices.php:932
MediaWiki\MediaWikiServices\getWatchlistNotificationManager
getWatchlistNotificationManager()
Definition: MediaWikiServices.php:1700
MediaWiki\MediaWikiServices\getMainObjectStash
getMainObjectStash()
Returns the main object stash, yielding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:1115
Page\PageStore
Definition: PageStore.php:26
WatchedItemStoreInterface
Definition: WatchedItemStoreInterface.php:31
MessageCache
Cache of messages that are defined by MediaWiki namespace pages or by hooks.
Definition: MessageCache.php:52
MediaWiki\MediaWikiServices\getLinkCache
getLinkCache()
Definition: MediaWikiServices.php:1036
MediaWiki\MediaWikiServices\getShellboxClientFactory
getShellboxClientFactory()
Definition: MediaWikiServices.php:1451
Page\PageStoreFactory
Definition: PageStoreFactory.php:14
PasswordReset
Helper class for the password reset functionality shared by the web UI and the API.
Definition: PasswordReset.php:43
MediaWiki\MediaWikiServices\getReadOnlyMode
getReadOnlyMode()
Definition: MediaWikiServices.php:1346
MediaWiki\User\UserFactory
Creates User objects.
Definition: UserFactory.php:41
Language
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition: Language.php:42
Wikimedia\Rdbms\ILoadBalancer
Database cluster connection, tracking, load balancing, and transaction manager interface.
Definition: ILoadBalancer.php:81
MediaWiki\MediaWikiServices\forceGlobalInstance
static forceGlobalInstance(MediaWikiServices $services)
Replaces the global MediaWikiServices instance.
Definition: MediaWikiServices.php:291
MediaWiki\User\ActorStore
Definition: ActorStore.php:43
MediaWiki\Storage\RevertedTagUpdateManager
Class for managing delayed RevertedTagUpdateJob waiting for user approval.
Definition: RevertedTagUpdateManager.php:36
JobQueueGroup
Class to handle enqueueing of background jobs.
Definition: JobQueueGroup.php:32
MediaWiki\Block\BlockRestrictionStore
Definition: BlockRestrictionStore.php:35
MediaWiki\MediaWikiServices\getStatsdDataFactory
getStatsdDataFactory()
Definition: MediaWikiServices.php:1523
MediaWiki\User\ActorNormalization
Service for dealing with the actor table.
Definition: ActorNormalization.php:32
MediaWiki\MediaWikiServices\getNameTableStoreFactory
getNameTableStoreFactory()
Definition: MediaWikiServices.php:1191
MediaWiki\MediaWikiServices\getRepoGroup
getRepoGroup()
Definition: MediaWikiServices.php:1354