MediaWiki  master
MediaWikiServices.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki;
4 
6 use BagOStuff;
7 use CommentStore;
8 use Config;
9 use ConfigFactory;
11 use CryptHKDF;
17 use GenderCache;
18 use GlobalVarConfig;
21 use JobRunner;
22 use Language;
23 use LinkCache;
24 use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
94 use MessageCache;
95 use MimeAnalyzer;
96 use MWException;
97 use NamespaceInfo;
98 use ObjectCache;
100 use PageProps;
101 use Parser;
102 use ParserCache;
103 use ParserFactory;
104 use PasswordFactory;
105 use PasswordReset;
106 use ProxyLookup;
107 use ReadOnlyMode;
108 use RepoGroup;
109 use ResourceLoader;
110 use SearchEngine;
113 use SiteLookup;
114 use SiteStore;
115 use SkinFactory;
116 use TitleFactory;
117 use TitleFormatter;
118 use TitleParser;
120 use UserCache;
122 use WANObjectCache;
126 use Wikimedia\NonSerializable\NonSerializableTrait;
127 use Wikimedia\ObjectFactory;
130 use Wikimedia\RequestTimeout\CriticalSectionProvider;
131 use Wikimedia\Services\NoSuchServiceException;
132 use Wikimedia\Services\SalvageableService;
133 use Wikimedia\Services\ServiceContainer;
135 
172 class MediaWikiServices extends ServiceContainer {
173  use NonSerializableTrait;
174 
178  private static $globalInstanceAllowed = false;
179 
183  private static $instance = null;
184 
196  public static function allowGlobalInstance() {
197  self::$globalInstanceAllowed = true;
198 
199  if ( self::$instance ) {
200  // TODO: in 1.37, getInstance() should fail if $globalInstanceAllowed is false! (T153256)
201  // Until then, we have to reset service instances that have already been created.
202  // No need to warn here, getService() has already triggered a deprecation warning.
203  self::resetGlobalInstance( null, 'quick' );
204  }
205  }
206 
213  public static function hasInstance() {
214  return self::$instance !== null;
215  }
216 
233  public static function getInstance() : self {
234  // TODO: in 1.37, getInstance() should fail if $globalInstanceAllowed is false! (T153256)
235  if ( !self::$globalInstanceAllowed ) {
236  wfDeprecatedMsg( 'Premature access to service container', '1.36' );
237  }
238 
239  if ( self::$instance === null ) {
240  // NOTE: constructing GlobalVarConfig here is not particularly pretty,
241  // but some information from the global scope has to be injected here,
242  // even if it's just a file name or database credentials to load
243  // configuration from.
244  $bootstrapConfig = new GlobalVarConfig();
245  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
246 
247  // Provides a traditional hook point to allow extensions to configure services.
248  // NOTE: Ideally this would be in newInstance() but it causes an infinite run loop
249  $runner = new HookRunner( self::$instance->getHookContainer() );
250  $runner->onMediaWikiServices( self::$instance );
251  }
252  return self::$instance;
253  }
254 
255  public function getService( $name ) {
256  // TODO: in 1.37, getInstance() should fail if $globalInstanceAllowed is false! (T153256)
257  if ( !self::$globalInstanceAllowed && $this === self::$instance ) {
258  wfDeprecatedMsg( "Premature access to service '$name'", '1.36', false, 3 );
259  }
260 
261  return parent::getService( $name );
262  }
263 
277  public static function forceGlobalInstance( MediaWikiServices $services ) {
278  if ( !defined( 'MW_PHPUNIT_TEST' ) && !defined( 'MW_PARSER_TEST' ) ) {
279  throw new MWException( __METHOD__ . ' must not be used outside unit tests.' );
280  }
281 
282  $old = self::getInstance();
283  self::$instance = $services;
284 
285  return $old;
286  }
287 
327  public static function resetGlobalInstance( Config $bootstrapConfig = null, $quick = '' ) {
328  if ( self::$instance === null ) {
329  // no global instance yet, nothing to reset
330  return;
331  }
332 
333  self::failIfResetNotAllowed( __METHOD__ );
334 
335  if ( $bootstrapConfig === null ) {
336  $bootstrapConfig = self::$instance->getBootstrapConfig();
337  }
338 
339  $oldInstance = self::$instance;
340 
341  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
342 
343  // Provides a traditional hook point to allow extensions to configure services.
344  $runner = new HookRunner( $oldInstance->getHookContainer() );
345  $runner->onMediaWikiServices( self::$instance );
346 
347  self::$instance->importWiring( $oldInstance, [ 'BootstrapConfig' ] );
348 
349  if ( $quick === 'quick' ) {
350  self::$instance->salvage( $oldInstance );
351  } else {
352  $oldInstance->destroy();
353  }
354  }
355 
365  private function salvage( self $other ) {
366  foreach ( $this->getServiceNames() as $name ) {
367  // The service could be new in the new instance and not registered in the
368  // other instance (e.g. an extension that was loaded after the instantiation of
369  // the other instance. Skip this service in this case. See T143974
370  try {
371  $oldService = $other->peekService( $name );
372  } catch ( NoSuchServiceException $e ) {
373  continue;
374  }
375 
376  if ( $oldService instanceof SalvageableService ) {
378  $newService = $this->getService( $name );
379  $newService->salvage( $oldService );
380  }
381  }
382 
383  $other->destroy();
384  }
385 
401  private static function newInstance( Config $bootstrapConfig, $loadWiring = '' ) {
402  $instance = new self( $bootstrapConfig );
403 
404  // Load the default wiring from the specified files.
405  if ( $loadWiring === 'load' ) {
406  $wiringFiles = $bootstrapConfig->get( 'ServiceWiringFiles' );
407  $instance->loadWiringFiles( $wiringFiles );
408  }
409 
410  return $instance;
411  }
412 
428  public static function disableStorageBackend() {
429  // TODO: also disable some Caches, JobQueues, etc
430  $destroy = [ 'DBLoadBalancer', 'DBLoadBalancerFactory' ];
431  $services = self::getInstance();
432 
433  foreach ( $destroy as $name ) {
434  $services->disableService( $name );
435  }
436 
438  }
439 
452  public static function resetChildProcessServices() {
453  // NOTE: for now, just reset everything. Since we don't know the interdependencies
454  // between services, we can't do this more selectively at this time.
455  self::resetGlobalInstance();
456 
457  // Child, reseed because there is no bug in PHP:
458  // https://bugs.php.net/bug.php?id=42465
459  mt_srand( getmypid() );
460  }
461 
483  public function resetServiceForTesting( $name, $destroy = true ) {
484  if ( !defined( 'MW_PHPUNIT_TEST' ) && !defined( 'MW_PARSER_TEST' ) ) {
485  throw new MWException( 'resetServiceForTesting() must not be used outside unit tests.' );
486  }
487 
488  $this->resetService( $name, $destroy );
489  }
490 
518  public static function failIfResetNotAllowed( $method ) {
519  if ( !defined( 'MW_PHPUNIT_TEST' )
520  && !defined( 'MW_PARSER_TEST' )
521  && !defined( 'MEDIAWIKI_INSTALL' )
522  && !defined( 'RUN_MAINTENANCE_IF_MAIN' )
523  && defined( 'MW_SERVICE_BOOTSTRAP_COMPLETE' )
524  ) {
525  throw new MWException( $method . ' may only be called during bootstrapping and unit tests!' );
526  }
527  }
528 
534  public function __construct( Config $config ) {
535  parent::__construct();
536 
537  // Register the given Config object as the bootstrap config service.
538  $this->defineService( 'BootstrapConfig', static function () use ( $config ) {
539  return $config;
540  } );
541  }
542 
543  // CONVENIENCE GETTERS ////////////////////////////////////////////////////
544 
549  public function getActorMigration() : ActorMigration {
550  return $this->getService( 'ActorMigration' );
551  }
552 
557  public function getActorNormalization() : ActorNormalization {
558  return $this->getService( 'ActorNormalization' );
559  }
560 
565  public function getActorStore() : ActorStore {
566  return $this->getService( 'ActorStore' );
567  }
568 
573  public function getActorStoreFactory() : ActorStoreFactory {
574  return $this->getService( 'ActorStoreFactory' );
575  }
576 
581  public function getAuthManager() : AuthManager {
582  return $this->getService( 'AuthManager' );
583  }
584 
589  public function getBadFileLookup() : BadFileLookup {
590  return $this->getService( 'BadFileLookup' );
591  }
592 
597  public function getBlobStore() : BlobStore {
598  return $this->getService( 'BlobStore' );
599  }
600 
605  public function getBlobStoreFactory() : BlobStoreFactory {
606  return $this->getService( 'BlobStoreFactory' );
607  }
608 
613  public function getBlockErrorFormatter() : BlockErrorFormatter {
614  return $this->getService( 'BlockErrorFormatter' );
615  }
616 
621  public function getBlockManager() : BlockManager {
622  return $this->getService( 'BlockManager' );
623  }
624 
629  public function getBlockPermissionCheckerFactory() : BlockPermissionCheckerFactory {
630  return $this->getService( 'BlockPermissionCheckerFactory' );
631  }
632 
637  public function getBlockRestrictionStore() : BlockRestrictionStore {
638  return $this->getService( 'BlockRestrictionStore' );
639  }
640 
645  public function getBlockUserFactory() : BlockUserFactory {
646  return $this->getService( 'BlockUserFactory' );
647  }
648 
653  public function getBlockUtils() : BlockUtils {
654  return $this->getService( 'BlockUtils' );
655  }
656 
670  public function getBootstrapConfig() : Config {
671  return $this->getService( 'BootstrapConfig' );
672  }
673 
678  public function getChangeTagDefStore() : NameTableStore {
679  return $this->getService( 'ChangeTagDefStore' );
680  }
681 
686  public function getCommentStore() : CommentStore {
687  return $this->getService( 'CommentStore' );
688  }
689 
694  public function getConfigFactory() : ConfigFactory {
695  return $this->getService( 'ConfigFactory' );
696  }
697 
702  public function getConfigRepository() : ConfigRepository {
703  return $this->getService( 'ConfigRepository' );
704  }
705 
711  return $this->getService( 'ConfiguredReadOnlyMode' );
712  }
713 
718  public function getContentHandlerFactory() : IContentHandlerFactory {
719  return $this->getService( 'ContentHandlerFactory' );
720  }
721 
726  public function getContentLanguage() : Language {
727  return $this->getService( 'ContentLanguage' );
728  }
729 
734  public function getContentModelChangeFactory() : ContentModelChangeFactory {
735  return $this->getService( 'ContentModelChangeFactory' );
736  }
737 
742  public function getContentModelStore() : NameTableStore {
743  return $this->getService( 'ContentModelStore' );
744  }
745 
750  public function getContributionsLookup() : ContributionsLookup {
751  return $this->getService( 'ContributionsLookup' );
752  }
753 
758  public function getCriticalSectionProvider() : CriticalSectionProvider {
759  return $this->getService( 'CriticalSectionProvider' );
760  }
761 
766  public function getCryptHKDF() : CryptHKDF {
767  return $this->getService( 'CryptHKDF' );
768  }
769 
774  public function getDatabaseBlockStore() : DatabaseBlockStore {
775  return $this->getService( 'DatabaseBlockStore' );
776  }
777 
783  return $this->getService( 'DateFormatterFactory' );
784  }
785 
790  public function getDBLoadBalancer() : ILoadBalancer {
791  return $this->getService( 'DBLoadBalancer' );
792  }
793 
798  public function getDBLoadBalancerFactory() : LBFactory {
799  return $this->getService( 'DBLoadBalancerFactory' );
800  }
801 
806  public function getEmailer() : IEmailer {
807  return $this->getService( 'Emailer' );
808  }
809 
815  return $this->getService( 'EventRelayerGroup' );
816  }
817 
823  return $this->getService( 'ExternalStoreAccess' );
824  }
825 
831  return $this->getService( 'ExternalStoreFactory' );
832  }
833 
838  public function getFileBackendGroup() : FileBackendGroup {
839  return $this->getService( 'FileBackendGroup' );
840  }
841 
846  public function getGenderCache() : GenderCache {
847  return $this->getService( 'GenderCache' );
848  }
849 
854  public function getGlobalIdGenerator() : GlobalIdGenerator {
855  return $this->getService( 'GlobalIdGenerator' );
856  }
857 
862  public function getGroupPermissionsLookup() : GroupPermissionsLookup {
863  return $this->getService( 'GroupPermissionsLookup' );
864  }
865 
870  public function getHookContainer() : HookContainer {
871  return $this->getService( 'HookContainer' );
872  }
873 
878  public function getHtmlCacheUpdater() : HtmlCacheUpdater {
879  return $this->getService( 'HtmlCacheUpdater' );
880  }
881 
886  public function getHttpRequestFactory() : HttpRequestFactory {
887  return $this->getService( 'HttpRequestFactory' );
888  }
889 
894  public function getInterwikiLookup() : InterwikiLookup {
895  return $this->getService( 'InterwikiLookup' );
896  }
897 
902  public function getJobRunner() : JobRunner {
903  return $this->getService( 'JobRunner' );
904  }
905 
910  public function getJsonCodec() : JsonCodec {
911  return $this->getService( 'JsonCodec' );
912  }
913 
918  public function getLanguageConverterFactory() : LanguageConverterFactory {
919  return $this->getService( 'LanguageConverterFactory' );
920  }
921 
926  public function getLanguageFactory() : LanguageFactory {
927  return $this->getService( 'LanguageFactory' );
928  }
929 
934  public function getLanguageFallback() : LanguageFallback {
935  return $this->getService( 'LanguageFallback' );
936  }
937 
942  public function getLanguageNameUtils() : LanguageNameUtils {
943  return $this->getService( 'LanguageNameUtils' );
944  }
945 
950  public function getLinkBatchFactory() : LinkBatchFactory {
951  return $this->getService( 'LinkBatchFactory' );
952  }
953 
958  public function getLinkCache() : LinkCache {
959  return $this->getService( 'LinkCache' );
960  }
961 
969  public function getLinkRenderer() : LinkRenderer {
970  return $this->getService( 'LinkRenderer' );
971  }
972 
977  public function getLinkRendererFactory() : LinkRendererFactory {
978  return $this->getService( 'LinkRendererFactory' );
979  }
980 
986  return $this->getService( 'LocalisationCache' );
987  }
988 
998  public function getLocalServerObjectCache() : BagOStuff {
999  return $this->getService( 'LocalServerObjectCache' );
1000  }
1001 
1006  public function getLockManagerGroupFactory() : LockManagerGroupFactory {
1007  return $this->getService( 'LockManagerGroupFactory' );
1008  }
1009 
1015  return $this->getService( 'MagicWordFactory' );
1016  }
1017 
1025  public function getMainConfig() : Config {
1026  return $this->getService( 'MainConfig' );
1027  }
1028 
1037  public function getMainObjectStash() : BagOStuff {
1038  return $this->getService( 'MainObjectStash' );
1039  }
1040 
1050  return $this->getService( 'MainWANObjectCache' );
1051  }
1052 
1058  return $this->getService( 'MediaHandlerFactory' );
1059  }
1060 
1065  public function getMergeHistoryFactory() : MergeHistoryFactory {
1066  return $this->getService( 'MergeHistoryFactory' );
1067  }
1068 
1073  public function getMessageCache() : MessageCache {
1074  return $this->getService( 'MessageCache' );
1075  }
1076 
1081  public function getMessageFormatterFactory() : IMessageFormatterFactory {
1082  return $this->getService( 'MessageFormatterFactory' );
1083  }
1084 
1089  public function getMimeAnalyzer() : MimeAnalyzer {
1090  return $this->getService( 'MimeAnalyzer' );
1091  }
1092 
1097  public function getMovePageFactory() : MovePageFactory {
1098  return $this->getService( 'MovePageFactory' );
1099  }
1100 
1105  public function getNamespaceInfo() : NamespaceInfo {
1106  return $this->getService( 'NamespaceInfo' );
1107  }
1108 
1113  public function getNameTableStoreFactory() : NameTableStoreFactory {
1114  return $this->getService( 'NameTableStoreFactory' );
1115  }
1116 
1124  public function getObjectFactory() : ObjectFactory {
1125  return $this->getService( 'ObjectFactory' );
1126  }
1127 
1133  return $this->getService( 'OldRevisionImporter' );
1134  }
1135 
1140  public function getPageEditStash() : PageEditStash {
1141  return $this->getService( 'PageEditStash' );
1142  }
1143 
1148  public function getPageProps() : PageProps {
1149  return $this->getService( 'PageProps' );
1150  }
1151 
1156  public function getParser() : Parser {
1157  return $this->getService( 'Parser' );
1158  }
1159 
1164  public function getParserCache() : ParserCache {
1165  return $this->getService( 'ParserCache' );
1166  }
1167 
1172  public function getParserCacheFactory() : ParserCacheFactory {
1173  return $this->getService( 'ParserCacheFactory' );
1174  }
1175 
1180  public function getParserFactory() : ParserFactory {
1181  return $this->getService( 'ParserFactory' );
1182  }
1183 
1188  public function getParserOutputAccess() : ParserOutputAccess {
1189  return $this->getService( 'ParserOutputAccess' );
1190  }
1191 
1196  public function getPasswordFactory() : PasswordFactory {
1197  return $this->getService( 'PasswordFactory' );
1198  }
1199 
1204  public function getPasswordReset() : PasswordReset {
1205  return $this->getService( 'PasswordReset' );
1206  }
1207 
1212  public function getPerDbNameStatsdDataFactory() : StatsdDataFactoryInterface {
1213  return $this->getService( 'PerDbNameStatsdDataFactory' );
1214  }
1215 
1220  public function getPermissionManager() : PermissionManager {
1221  return $this->getService( 'PermissionManager' );
1222  }
1223 
1228  public function getPreferencesFactory() : PreferencesFactory {
1229  return $this->getService( 'PreferencesFactory' );
1230  }
1231 
1236  public function getProxyLookup() : ProxyLookup {
1237  return $this->getService( 'ProxyLookup' );
1238  }
1239 
1244  public function getReadOnlyMode() : ReadOnlyMode {
1245  return $this->getService( 'ReadOnlyMode' );
1246  }
1247 
1252  public function getRepoGroup() : RepoGroup {
1253  return $this->getService( 'RepoGroup' );
1254  }
1255 
1260  public function getResourceLoader() : ResourceLoader {
1261  return $this->getService( 'ResourceLoader' );
1262  }
1263 
1268  public function getRevertedTagUpdateManager() : RevertedTagUpdateManager {
1269  return $this->getService( 'RevertedTagUpdateManager' );
1270  }
1271 
1276  public function getRevisionFactory() : RevisionFactory {
1277  return $this->getService( 'RevisionFactory' );
1278  }
1279 
1284  public function getRevisionLookup() : RevisionLookup {
1285  return $this->getService( 'RevisionLookup' );
1286  }
1287 
1292  public function getRevisionRenderer() : RevisionRenderer {
1293  return $this->getService( 'RevisionRenderer' );
1294  }
1295 
1300  public function getRevisionStore() : RevisionStore {
1301  return $this->getService( 'RevisionStore' );
1302  }
1303 
1308  public function getRevisionStoreFactory() : RevisionStoreFactory {
1309  return $this->getService( 'RevisionStoreFactory' );
1310  }
1311 
1316  public function newSearchEngine() : SearchEngine {
1317  // New engine object every time, since they keep state
1318  return $this->getService( 'SearchEngineFactory' )->create();
1319  }
1320 
1326  return $this->getService( 'SearchEngineConfig' );
1327  }
1328 
1334  return $this->getService( 'SearchEngineFactory' );
1335  }
1336 
1341  public function getShellboxClientFactory() : ShellboxClientFactory {
1342  return $this->getService( 'ShellboxClientFactory' );
1343  }
1344 
1349  public function getShellCommandFactory() : CommandFactory {
1350  return $this->getService( 'ShellCommandFactory' );
1351  }
1352 
1357  public function getSiteLookup() : SiteLookup {
1358  return $this->getService( 'SiteLookup' );
1359  }
1360 
1365  public function getSiteStore() : SiteStore {
1366  return $this->getService( 'SiteStore' );
1367  }
1368 
1373  public function getSkinFactory() : SkinFactory {
1374  return $this->getService( 'SkinFactory' );
1375  }
1376 
1381  public function getSlotRoleRegistry() : SlotRoleRegistry {
1382  return $this->getService( 'SlotRoleRegistry' );
1383  }
1384 
1389  public function getSlotRoleStore() : NameTableStore {
1390  return $this->getService( 'SlotRoleStore' );
1391  }
1392 
1397  public function getSpamChecker() : SpamChecker {
1398  return $this->getService( 'SpamChecker' );
1399  }
1400 
1405  public function getSpecialPageFactory() : SpecialPageFactory {
1406  return $this->getService( 'SpecialPageFactory' );
1407  }
1408 
1414  return $this->getService( 'StatsdDataFactory' );
1415  }
1416 
1421  public function getTalkPageNotificationManager() : TalkPageNotificationManager {
1422  return $this->getService( 'TalkPageNotificationManager' );
1423  }
1424 
1429  public function getTempFSFileFactory() : TempFSFileFactory {
1430  return $this->getService( 'TempFSFileFactory' );
1431  }
1432 
1437  public function getTitleFactory() : TitleFactory {
1438  return $this->getService( 'TitleFactory' );
1439  }
1440 
1445  public function getTitleFormatter() : TitleFormatter {
1446  return $this->getService( 'TitleFormatter' );
1447  }
1448 
1453  public function getTitleParser() : TitleParser {
1454  return $this->getService( 'TitleParser' );
1455  }
1456 
1461  public function getUnblockUserFactory() : UnblockUserFactory {
1462  return $this->getService( 'UnblockUserFactory' );
1463  }
1464 
1470  return $this->getService( 'UploadRevisionImporter' );
1471  }
1472 
1477  public function getUserCache() : UserCache {
1478  return $this->getService( 'UserCache' );
1479  }
1480 
1485  public function getUserEditTracker() : UserEditTracker {
1486  return $this->getService( 'UserEditTracker' );
1487  }
1488 
1493  public function getUserFactory() : UserFactory {
1494  return $this->getService( 'UserFactory' );
1495  }
1496 
1501  public function getUserGroupManager() : UserGroupManager {
1502  return $this->getService( 'UserGroupManager' );
1503  }
1504 
1509  public function getUserGroupManagerFactory() : UserGroupManagerFactory {
1510  return $this->getService( 'UserGroupManagerFactory' );
1511  }
1512 
1517  public function getUserIdentityLookup() : UserIdentityLookup {
1518  return $this->getService( 'UserIdentityLookup' );
1519  }
1520 
1526  return $this->getService( 'UserNamePrefixSearch' );
1527  }
1528 
1533  public function getUserNameUtils() : UserNameUtils {
1534  return $this->getService( 'UserNameUtils' );
1535  }
1536 
1541  public function getUserOptionsLookup() : UserOptionsLookup {
1542  return $this->getService( 'UserOptionsLookup' );
1543  }
1544 
1549  public function getUserOptionsManager() : UserOptionsManager {
1550  return $this->getService( 'UserOptionsManager' );
1551  }
1552 
1558  return $this->getService( 'VirtualRESTServiceClient' );
1559  }
1560 
1566  return $this->getService( 'WatchedItemQueryService' );
1567  }
1568 
1574  return $this->getService( 'WatchedItemStore' );
1575  }
1576 
1581  public function getWatchlistNotificationManager() : WatchlistNotificationManager {
1582  return $this->getService( 'WatchlistNotificationManager' );
1583  }
1584 
1589  public function getWikiPageFactory() : WikiPageFactory {
1590  return $this->getService( 'WikiPageFactory' );
1591  }
1592 
1598  return $this->getService( 'OldRevisionImporter' );
1599  }
1600 
1606  return $this->getService( 'WikiRevisionOldRevisionImporterNoUpdates' );
1607  }
1608 
1614  return $this->getService( 'UploadRevisionImporter' );
1615  }
1616 
1617 }
EventRelayerGroup
Factory class for spawning EventRelayer objects using configuration.
Definition: EventRelayerGroup.php:26
MediaWiki\MediaWikiServices\getMessageCache
getMessageCache()
Definition: MediaWikiServices.php:1073
MediaWiki\MediaWikiServices\getBlockErrorFormatter
getBlockErrorFormatter()
Definition: MediaWikiServices.php:613
ObjectCache\clear
static clear()
Clear all the cached instances.
Definition: ObjectCache.php:285
ObjectCache
Functions to get cache objects.
Definition: ObjectCache.php:68
LinkCache
Cache for article titles (prefixed DB keys) and ids linked from one source.
Definition: LinkCache.php:35
MediaWiki\MediaWikiServices\getShellCommandFactory
getShellCommandFactory()
Definition: MediaWikiServices.php:1349
MediaWiki\Block\BlockPermissionCheckerFactory
Factory class for BlockPermissionChecker.
Definition: BlockPermissionCheckerFactory.php:34
MediaWiki\MediaWikiServices\getInterwikiLookup
getInterwikiLookup()
Definition: MediaWikiServices.php:894
MediaWiki\Block\BlockUserFactory
Definition: BlockUserFactory.php:30
MediaWiki\MediaWikiServices\getSpamChecker
getSpamChecker()
Definition: MediaWikiServices.php:1397
MediaWiki\MediaWikiServices\getResourceLoader
getResourceLoader()
Definition: MediaWikiServices.php:1260
MediaWiki\MediaWikiServices\getSearchEngineConfig
getSearchEngineConfig()
Definition: MediaWikiServices.php:1325
UploadRevisionImporter
Definition: UploadRevisionImporter.php:6
Wikimedia\UUID\GlobalIdGenerator
Class for getting statistically unique IDs without a central coordinator.
Definition: GlobalIdGenerator.php:36
FileBackendGroup
Class to handle file backend registration.
Definition: FileBackendGroup.php:37
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:1357
MediaWiki\MediaWikiServices\getParserFactory
getParserFactory()
Definition: MediaWikiServices.php:1180
MediaWiki\MediaWikiServices\getBlockManager
getBlockManager()
Definition: MediaWikiServices.php:621
MediaWiki\MediaWikiServices\getJobRunner
getJobRunner()
Definition: MediaWikiServices.php:902
UserCache
Definition: UserCache.php:32
MediaWiki\Block\BlockManager
A service class for checking blocks.
Definition: BlockManager.php:46
MediaWiki\MediaWikiServices\getBlockRestrictionStore
getBlockRestrictionStore()
Definition: MediaWikiServices.php:637
MediaWiki\MediaWikiServices\getDBLoadBalancer
getDBLoadBalancer()
Definition: MediaWikiServices.php:790
MediaWiki\Permissions\GroupPermissionsLookup
Definition: GroupPermissionsLookup.php:30
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition: MediaWikiServices.php:172
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:49
Revision\RevisionStore
Service for looking up page revisions.
Definition: RevisionStore.php:84
MediaWiki\Block\BlockErrorFormatter
A service class for getting formatted information about a block.
Definition: BlockErrorFormatter.php:35
MediaWiki\Http\HttpRequestFactory
Factory creating MWHttpRequest objects.
Definition: HttpRequestFactory.php:39
MediaWiki\MediaWikiServices\getContentModelStore
getContentModelStore()
Definition: MediaWikiServices.php:742
MediaWiki\MediaWikiServices\getChangeTagDefStore
getChangeTagDefStore()
Definition: MediaWikiServices.php:678
MediaWiki\MediaWikiServices\getLanguageConverterFactory
getLanguageConverterFactory()
Definition: MediaWikiServices.php:918
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:41
MediaWiki\MediaWikiServices\getBlockPermissionCheckerFactory
getBlockPermissionCheckerFactory()
Definition: MediaWikiServices.php:629
MediaWiki\MediaWikiServices\getRevisionLookup
getRevisionLookup()
Definition: MediaWikiServices.php:1284
MediaWiki\Block\BlockUtils
Backend class for blocking utils.
Definition: BlockUtils.php:44
MediaWiki\SpecialPage\SpecialPageFactory
Factory for handling the special page list and generating SpecialPage objects.
Definition: SpecialPageFactory.php:61
ReadOnlyMode
A service class for fetching the wiki's current read-only mode.
Definition: ReadOnlyMode.php:11
MediaWiki\MediaWikiServices\getActorStoreFactory
getActorStoreFactory()
Definition: MediaWikiServices.php:573
MediaWiki\MediaWikiServices\getBootstrapConfig
getBootstrapConfig()
Returns the Config object containing the bootstrap configuration.
Definition: MediaWikiServices.php:670
MediaWiki\FileBackend\LockManager\LockManagerGroupFactory
Service to construct LockManagerGroups.
Definition: LockManagerGroupFactory.php:11
MediaWiki\MediaWikiServices\getCommentStore
getCommentStore()
Definition: MediaWikiServices.php:686
MediaWiki\MediaWikiServices\getGlobalIdGenerator
getGlobalIdGenerator()
Definition: MediaWikiServices.php:854
MediaWiki\MediaWikiServices\getSlotRoleStore
getSlotRoleStore()
Definition: MediaWikiServices.php:1389
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:822
MediaWiki\MediaWikiServices\getUserNamePrefixSearch
getUserNamePrefixSearch()
Definition: MediaWikiServices.php:1525
MediaWiki\MediaWikiServices\getUserOptionsManager
getUserOptionsManager()
Definition: MediaWikiServices.php:1549
BagOStuff
Class representing a cache/ephemeral data store.
Definition: BagOStuff.php:72
MediaWiki\Linker\LinkRendererFactory
Factory to create LinkRender objects.
Definition: LinkRendererFactory.php:34
SearchEngineFactory
Factory class for SearchEngine.
Definition: SearchEngineFactory.php:13
Revision\RevisionFactory
Service for constructing revision objects.
Definition: RevisionFactory.php:38
MediaWiki\MediaWikiServices\getActorMigration
getActorMigration()
Definition: MediaWikiServices.php:549
MediaWiki\MediaWikiServices\getJsonCodec
getJsonCodec()
Definition: MediaWikiServices.php:910
ActorMigration
This class handles the logic for the actor table migration and should always be used in lieu of direc...
Definition: ActorMigration.php:42
MediaWiki\MediaWikiServices\getBlockUtils
getBlockUtils()
Definition: MediaWikiServices.php:653
MediaWiki\MediaWikiServices\getWikiPageFactory
getWikiPageFactory()
Definition: MediaWikiServices.php:1589
MediaWiki\Block\DatabaseBlockStore
Definition: DatabaseBlockStore.php:44
Parser\ParserCacheFactory
Definition: ParserCacheFactory.php:38
MediaWiki\MediaWikiServices\getPermissionManager
getPermissionManager()
Definition: MediaWikiServices.php:1220
MediaWiki\MediaWikiServices\getLanguageFallback
getLanguageFallback()
Definition: MediaWikiServices.php:934
MediaWiki\MediaWikiServices\getGenderCache
getGenderCache()
Definition: MediaWikiServices.php:846
MediaWiki\User\ActorStoreFactory
Definition: ActorStoreFactory.php:36
MediaWiki\MediaWikiServices\getEventRelayerGroup
getEventRelayerGroup()
Definition: MediaWikiServices.php:814
MediaWiki\MediaWikiServices\getLockManagerGroupFactory
getLockManagerGroupFactory()
Definition: MediaWikiServices.php:1006
MediaWiki\Languages\LanguageConverterFactory
An interface for creating language converters.
Definition: LanguageConverterFactory.php:46
SiteLookup
Definition: SiteLookup.php:28
Revision\RevisionLookup
Service for looking up page revisions.
Definition: RevisionLookup.php:38
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:29
MediaWiki\User\TalkPageNotificationManager
Manages user talk page notifications.
Definition: TalkPageNotificationManager.php:35
MediaWiki\MediaWikiServices\getOldRevisionImporter
getOldRevisionImporter()
Definition: MediaWikiServices.php:1132
MediaWiki\MediaWikiServices\getPasswordReset
getPasswordReset()
Definition: MediaWikiServices.php:1204
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:1469
MediaWiki\MediaWikiServices\getProxyLookup
getProxyLookup()
Definition: MediaWikiServices.php:1236
MediaWiki\MediaWikiServices\getSkinFactory
getSkinFactory()
Definition: MediaWikiServices.php:1373
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:518
MediaWiki\MediaWikiServices\getUserCache
getUserCache()
Definition: MediaWikiServices.php:1477
MediaWiki\MediaWikiServices\getInstance
static getInstance()
Returns the global default instance of the top level service locator.
Definition: MediaWikiServices.php:233
MediaWiki\MediaWikiServices\getLocalisationCache
getLocalisationCache()
Definition: MediaWikiServices.php:985
Config
Interface for configuration instances.
Definition: Config.php:30
MediaWiki\User\UserGroupManager
Managers user groups.
Definition: UserGroupManager.php:51
Page\MergeHistoryFactory
Definition: MergeHistoryFactory.php:31
MediaWiki\MediaWikiServices\getSpecialPageFactory
getSpecialPageFactory()
Definition: MediaWikiServices.php:1405
MediaWiki\MediaWikiServices\getAuthManager
getAuthManager()
Definition: MediaWikiServices.php:581
MediaWiki\MediaWikiServices\getMagicWordFactory
getMagicWordFactory()
Definition: MediaWikiServices.php:1014
MediaWiki\MediaWikiServices\getPerDbNameStatsdDataFactory
getPerDbNameStatsdDataFactory()
Definition: MediaWikiServices.php:1212
wfDeprecatedMsg
wfDeprecatedMsg( $msg, $version=false, $component=false, $callerOffset=2)
Log a deprecation warning with arbitrary message text.
Definition: GlobalFunctions.php:1066
MWException
MediaWiki exception.
Definition: MWException.php:29
MediaWiki\MediaWikiServices\resetServiceForTesting
resetServiceForTesting( $name, $destroy=true)
Resets the given service for testing purposes.
Definition: MediaWikiServices.php:483
MediaWiki\MediaWikiServices\getCryptHKDF
getCryptHKDF()
Definition: MediaWikiServices.php:766
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:327
MediaWiki\MediaWikiServices\getTempFSFileFactory
getTempFSFileFactory()
Definition: MediaWikiServices.php:1429
MediaWiki\MediaWikiServices\getWatchedItemStore
getWatchedItemStore()
Definition: MediaWikiServices.php:1573
MediaWiki\Storage\PageEditStash
Class for managing stashed edits used by the page updater classes.
Definition: PageEditStash.php:46
DateFormatterFactory
Definition: DateFormatterFactory.php:3
MediaWiki\MediaWikiServices\getContentHandlerFactory
getContentHandlerFactory()
Definition: MediaWikiServices.php:718
MediaWiki\User\WatchlistNotificationManager
WatchlistNotificationManager service.
Definition: WatchlistNotificationManager.php:40
MediaWiki\MediaWikiServices\getMediaHandlerFactory
getMediaHandlerFactory()
Definition: MediaWikiServices.php:1057
Config\get
get( $name)
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
MediaWiki\MediaWikiServices\getRevertedTagUpdateManager
getRevertedTagUpdateManager()
Definition: MediaWikiServices.php:1268
CryptHKDF
Definition: CryptHKDF.php:33
MediaWiki\MediaWikiServices\getWatchedItemQueryService
getWatchedItemQueryService()
Definition: MediaWikiServices.php:1565
MediaWiki\MediaWikiServices\getUserEditTracker
getUserEditTracker()
Definition: MediaWikiServices.php:1485
MediaWiki\Cache\LinkBatchFactory
Definition: LinkBatchFactory.php:38
MediaWiki\MediaWikiServices\getUserFactory
getUserFactory()
Definition: MediaWikiServices.php:1493
MediaWiki\MediaWikiServices\getMergeHistoryFactory
getMergeHistoryFactory()
Definition: MediaWikiServices.php:1065
MediaWiki\MediaWikiServices\getTitleParser
getTitleParser()
Definition: MediaWikiServices.php:1453
WatchedItemQueryService
Definition: WatchedItemQueryService.php:24
ProxyLookup
Definition: ProxyLookup.php:27
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\User\UserNamePrefixSearch
Handles searching prefixes of user names.
Definition: UserNamePrefixSearch.php:39
MediaWiki\MediaWikiServices\getFileBackendGroup
getFileBackendGroup()
Definition: MediaWikiServices.php:838
MediaWiki
A helper class for throttling authentication attempts.
MediaWiki\MediaWikiServices\getParserCacheFactory
getParserCacheFactory()
Definition: MediaWikiServices.php:1172
MediaWiki\Block\UnblockUserFactory
Definition: UnblockUserFactory.php:29
MediaWiki\MediaWikiServices\getMessageFormatterFactory
getMessageFormatterFactory()
Definition: MediaWikiServices.php:1081
Page\WikiPageFactory
Definition: WikiPageFactory.php:20
MediaWiki\MediaWikiServices\newSearchEngine
newSearchEngine()
Definition: MediaWikiServices.php:1316
MediaWiki\MediaWikiServices\getMainConfig
getMainConfig()
Returns the Config object that provides configuration for MediaWiki core.
Definition: MediaWikiServices.php:1025
MediaWiki\MediaWikiServices\getObjectFactory
getObjectFactory()
ObjectFactory is intended for instantiating "handlers" from declarative definitions,...
Definition: MediaWikiServices.php:1124
MediaWiki\MediaWikiServices\getSearchEngineFactory
getSearchEngineFactory()
Definition: MediaWikiServices.php:1333
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:428
MediaWiki\MediaWikiServices\getRevisionStoreFactory
getRevisionStoreFactory()
Definition: MediaWikiServices.php:1308
MediaWiki\MediaWikiServices\getUserIdentityLookup
getUserIdentityLookup()
Definition: MediaWikiServices.php:1517
MediaWiki\MediaWikiServices\getDBLoadBalancerFactory
getDBLoadBalancerFactory()
Definition: MediaWikiServices.php:798
MediaWiki\MediaWikiServices\newInstance
static newInstance(Config $bootstrapConfig, $loadWiring='')
Creates a new MediaWikiServices instance and initializes it according to the given $bootstrapConfig.
Definition: MediaWikiServices.php:401
MediaWiki\MediaWikiServices\getTitleFormatter
getTitleFormatter()
Definition: MediaWikiServices.php:1445
MediaWiki\MediaWikiServices\getLinkBatchFactory
getLinkBatchFactory()
Definition: MediaWikiServices.php:950
MediaWiki\MediaWikiServices\getHttpRequestFactory
getHttpRequestFactory()
Definition: MediaWikiServices.php:886
MediaWiki\MediaWikiServices\getActorStore
getActorStore()
Definition: MediaWikiServices.php:565
MediaWiki\MediaWikiServices\getCriticalSectionProvider
getCriticalSectionProvider()
Definition: MediaWikiServices.php:758
MediaWiki\MediaWikiServices\getRevisionFactory
getRevisionFactory()
Definition: MediaWikiServices.php:1276
MediaWiki\MediaWikiServices\getParserCache
getParserCache()
Definition: MediaWikiServices.php:1164
MediaWiki\MediaWikiServices\salvage
salvage(self $other)
@noinspection PhpDocSignatureInspection
Definition: MediaWikiServices.php:365
MediaWiki\FileBackend\FSFile\TempFSFileFactory
Definition: TempFSFileFactory.php:10
MediaWiki\MediaWikiServices\getPreferencesFactory
getPreferencesFactory()
Definition: MediaWikiServices.php:1228
MediaWiki\MediaWikiServices\__construct
__construct(Config $config)
Definition: MediaWikiServices.php:534
MediaWiki\MediaWikiServices\getContentModelChangeFactory
getContentModelChangeFactory()
Definition: MediaWikiServices.php:734
UserNamePrefixSearch
Handles searching prefixes of user names.
Definition: UserNamePrefixSearch_deprecated.php:37
MediaWiki\User\UserGroupManagerFactory
Factory service for UserGroupManager instances.
Definition: UserGroupManagerFactory.php:36
MediaWiki\User\UserIdentityLookup
Definition: UserIdentityLookup.php:32
ExternalStoreFactory
Definition: ExternalStoreFactory.php:15
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:51
MediaWiki\MediaWikiServices\getPasswordFactory
getPasswordFactory()
Definition: MediaWikiServices.php:1196
ParserFactory
Definition: ParserFactory.php:33
MediaWiki\MediaWikiServices\getService
getService( $name)
Definition: MediaWikiServices.php:255
MediaWiki\MediaWikiServices\getPageEditStash
getPageEditStash()
Definition: MediaWikiServices.php:1140
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporterNoUpdates
getWikiRevisionOldRevisionImporterNoUpdates()
Definition: MediaWikiServices.php:1605
MediaWiki\MediaWikiServices\getHtmlCacheUpdater
getHtmlCacheUpdater()
Definition: MediaWikiServices.php:878
MediaWiki\Content\IContentHandlerFactory
Definition: IContentHandlerFactory.php:10
MediaWiki\MediaWikiServices\getVirtualRESTServiceClient
getVirtualRESTServiceClient()
Definition: MediaWikiServices.php:1557
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:589
MediaWiki\MediaWikiServices\getConfigFactory
getConfigFactory()
Definition: MediaWikiServices.php:694
MediaWiki\Shell\CommandFactory
Factory facilitating dependency injection for Command.
Definition: CommandFactory.php:35
MediaWiki\MediaWikiServices\getWikiRevisionUploadImporter
getWikiRevisionUploadImporter()
Definition: MediaWikiServices.php:1613
MediaWiki\Preferences\PreferencesFactory
A PreferencesFactory is a MediaWiki service that provides the definitions of preferences for a given ...
Definition: PreferencesFactory.php:54
WANObjectCache
Multi-datacenter aware caching interface.
Definition: WANObjectCache.php:125
MediaWiki\MediaWikiServices\getUserNameUtils
getUserNameUtils()
Definition: MediaWikiServices.php:1533
MediaWiki\MediaWikiServices\getUserGroupManagerFactory
getUserGroupManagerFactory()
Definition: MediaWikiServices.php:1509
HtmlCacheUpdater
Class to invalidate the CDN and HTMLFileCache entries associated with URLs/titles.
Definition: HtmlCacheUpdater.php:30
MediaWiki\MediaWikiServices\getRevisionRenderer
getRevisionRenderer()
Definition: MediaWikiServices.php:1292
MediaWiki\MediaWikiServices\getUserOptionsLookup
getUserOptionsLookup()
Definition: MediaWikiServices.php:1541
MediaWiki\MediaWikiServices\getContributionsLookup
getContributionsLookup()
Definition: MediaWikiServices.php:750
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:213
MediaWiki\Storage\NameTableStore
Definition: NameTableStore.php:36
MediaWiki\MediaWikiServices\getExternalStoreFactory
getExternalStoreFactory()
Definition: MediaWikiServices.php:830
Parser
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...
Definition: Parser.php:85
Revision\RevisionStoreFactory
Factory service for RevisionStore instances.
Definition: RevisionStoreFactory.php:52
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:782
Page\MovePageFactory
Definition: MovePageFactory.php:30
SearchEngine
Contain a class for special pages Stable to extend.
Definition: SearchEngine.php:37
MediaWiki\MediaWikiServices\getTitleFactory
getTitleFactory()
Definition: MediaWikiServices.php:1437
MediaWiki\Auth\AuthManager
This serves as the entry point to the authentication system.
Definition: AuthManager.php:93
MediaWiki\Storage\BlobStore
Service for loading and storing data blobs.
Definition: BlobStore.php:35
Revision\ContributionsLookup
Definition: ContributionsLookup.php:23
MediaWiki\User\UserOptionsManager
A service class to control user options.
Definition: UserOptionsManager.php:44
MediaWiki\MediaWikiServices\getMainWANObjectCache
getMainWANObjectCache()
Returns the main WAN cache, yeilding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:1049
MediaWiki\MediaWikiServices\getMimeAnalyzer
getMimeAnalyzer()
Definition: MediaWikiServices.php:1089
IBufferingStatsdDataFactory
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
Definition: IBufferingStatsdDataFactory.php:13
MediaWiki\MediaWikiServices\getSiteStore
getSiteStore()
Definition: MediaWikiServices.php:1365
MediaWiki\MediaWikiServices\getBlobStore
getBlobStore()
Definition: MediaWikiServices.php:597
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:1461
MediaWiki\MediaWikiServices\getLocalServerObjectCache
getLocalServerObjectCache()
Returns the main server-local cache, yeilding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:998
MediaWiki\MediaWikiServices\getMovePageFactory
getMovePageFactory()
Definition: MediaWikiServices.php:1097
ResourceLoader
ResourceLoader is a loading system for JavaScript and CSS resources.
Definition: ResourceLoader.php:56
OldRevisionImporter
Definition: OldRevisionImporter.php:6
MediaWiki\MediaWikiServices\getBlobStoreFactory
getBlobStoreFactory()
Definition: MediaWikiServices.php:605
MediaWiki\MediaWikiServices\getConfiguredReadOnlyMode
getConfiguredReadOnlyMode()
Definition: MediaWikiServices.php:710
MediaWiki\MediaWikiServices\getLanguageFactory
getLanguageFactory()
Definition: MediaWikiServices.php:926
MediaWiki\MediaWikiServices\getRevisionStore
getRevisionStore()
Definition: MediaWikiServices.php:1300
MediaWiki\MediaWikiServices\getParserOutputAccess
getParserOutputAccess()
Definition: MediaWikiServices.php:1188
MediaWiki\User\UserEditTracker
Track info about user edit counts and timings.
Definition: UserEditTracker.php:19
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporter
getWikiRevisionOldRevisionImporter()
Definition: MediaWikiServices.php:1597
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:196
MediaWiki\MediaWikiServices\getGroupPermissionsLookup
getGroupPermissionsLookup()
Definition: MediaWikiServices.php:862
MediaWiki\User\UserNameUtils
UserNameUtils service.
Definition: UserNameUtils.php:42
MediaWiki\MediaWikiServices\getParser
getParser()
Definition: MediaWikiServices.php:1156
MediaWiki\MediaWikiServices\getLanguageNameUtils
getLanguageNameUtils()
Definition: MediaWikiServices.php:942
MediaWiki\MediaWikiServices\getDatabaseBlockStore
getDatabaseBlockStore()
Definition: MediaWikiServices.php:774
MediaWiki\MediaWikiServices\getNamespaceInfo
getNamespaceInfo()
Definition: MediaWikiServices.php:1105
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:452
MediaWiki\MediaWikiServices\getSlotRoleRegistry
getSlotRoleRegistry()
Definition: MediaWikiServices.php:1381
TitleFormatter
A title formatter service for MediaWiki.
Definition: TitleFormatter.php:34
MediaWiki\MediaWikiServices\getActorNormalization
getActorNormalization()
Definition: MediaWikiServices.php:557
Wikimedia\Rdbms\LBFactory
An interface for generating database load balancers.
Definition: LBFactory.php:41
MediaWiki\MediaWikiServices\getContentLanguage
getContentLanguage()
Definition: MediaWikiServices.php:726
TitleFactory
Creates Title objects.
Definition: TitleFactory.php:33
MediaWiki\MediaWikiServices\getConfigRepository
getConfigRepository()
Definition: MediaWikiServices.php:702
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:31
ParserCache
Cache for ParserOutput objects corresponding to the latest page revisions.
Definition: ParserCache.php:61
ConfigFactory
Factory class to create Config objects.
Definition: ConfigFactory.php:31
MediaWiki\Storage\NameTableStoreFactory
Definition: NameTableStoreFactory.php:26
SearchEngineConfig
Configuration handling class for SearchEngine.
Definition: SearchEngineConfig.php:12
MediaWiki\MediaWikiServices\getPageProps
getPageProps()
Definition: MediaWikiServices.php:1148
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:806
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:575
MediaWiki\MediaWikiServices\getLinkRendererFactory
getLinkRendererFactory()
Definition: MediaWikiServices.php:977
MediaWiki\MediaWikiServices\getBlockUserFactory
getBlockUserFactory()
Definition: MediaWikiServices.php:645
MediaWiki\MediaWikiServices\getUserGroupManager
getUserGroupManager()
Definition: MediaWikiServices.php:1501
MediaWiki\Json\JsonCodec
Definition: JsonCodec.php:36
JobRunner
Job queue runner utility methods.
Definition: JobRunner.php:41
MediaWiki\MediaWikiServices\getTalkPageNotificationManager
getTalkPageNotificationManager()
Definition: MediaWikiServices.php:1421
MediaWiki\MediaWikiServices\getLinkRenderer
getLinkRenderer()
LinkRenderer instance that can be used if no custom options are needed.
Definition: MediaWikiServices.php:969
MediaWiki\MediaWikiServices\getHookContainer
getHookContainer()
Definition: MediaWikiServices.php:870
MediaWiki\MediaWikiServices\getWatchlistNotificationManager
getWatchlistNotificationManager()
Definition: MediaWikiServices.php:1581
MediaWiki\MediaWikiServices\getMainObjectStash
getMainObjectStash()
Returns the main object stash, yeilding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:1037
WatchedItemStoreInterface
Definition: WatchedItemStoreInterface.php:30
MessageCache
Cache of messages that are defined by MediaWiki namespace pages or by hooks.
Definition: MessageCache.php:50
MediaWiki\MediaWikiServices\getLinkCache
getLinkCache()
Definition: MediaWikiServices.php:958
MediaWiki\MediaWikiServices\getShellboxClientFactory
getShellboxClientFactory()
Definition: MediaWikiServices.php:1341
PasswordReset
Helper class for the password reset functionality shared by the web UI and the API.
Definition: PasswordReset.php:44
MediaWiki\MediaWikiServices\getReadOnlyMode
getReadOnlyMode()
Definition: MediaWikiServices.php:1244
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:277
MediaWiki\User\ActorStore
Definition: ActorStore.php:42
MediaWiki\Storage\RevertedTagUpdateManager
Class for managing delayed RevertedTagUpdateJob waiting for user approval.
Definition: RevertedTagUpdateManager.php:36
MediaWiki\Block\BlockRestrictionStore
Definition: BlockRestrictionStore.php:34
MediaWiki\MediaWikiServices\getStatsdDataFactory
getStatsdDataFactory()
Definition: MediaWikiServices.php:1413
MediaWiki\User\ActorNormalization
Service for dealing with the actor table.
Definition: ActorNormalization.php:33
MediaWiki\MediaWikiServices\getNameTableStoreFactory
getNameTableStoreFactory()
Definition: MediaWikiServices.php:1113
MediaWiki\MediaWikiServices\getRepoGroup
getRepoGroup()
Definition: MediaWikiServices.php:1252