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;
88 use MessageCache;
89 use MimeAnalyzer;
90 use MWException;
91 use NamespaceInfo;
92 use ObjectCache;
94 use PageProps;
95 use Parser;
96 use ParserCache;
97 use ParserFactory;
98 use PasswordFactory;
99 use PasswordReset;
100 use ProxyLookup;
101 use ReadOnlyMode;
102 use RepoGroup;
103 use ResourceLoader;
104 use SearchEngine;
107 use SiteLookup;
108 use SiteStore;
109 use SkinFactory;
110 use TitleFactory;
111 use TitleFormatter;
112 use TitleParser;
114 use UserCache;
116 use WANObjectCache;
120 use Wikimedia\NonSerializable\NonSerializableTrait;
121 use Wikimedia\ObjectFactory;
124 use Wikimedia\Services\NoSuchServiceException;
125 use Wikimedia\Services\SalvageableService;
126 use Wikimedia\Services\ServiceContainer;
128 
165 class MediaWikiServices extends ServiceContainer {
166  use NonSerializableTrait;
167 
171  private static $instance = null;
172 
179  public static function hasInstance() {
180  return self::$instance !== null;
181  }
182 
197  public static function getInstance() : self {
198  if ( self::$instance === null ) {
199  // NOTE: constructing GlobalVarConfig here is not particularly pretty,
200  // but some information from the global scope has to be injected here,
201  // even if it's just a file name or database credentials to load
202  // configuration from.
203  $bootstrapConfig = new GlobalVarConfig();
204  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
205 
206  // Provides a traditional hook point to allow extensions to configure services.
207  // NOTE: Ideally this would be in newInstance() but it causes an infinite run loop
208  $runner = new HookRunner( self::$instance->getHookContainer() );
209  $runner->onMediaWikiServices( self::$instance );
210  }
211  return self::$instance;
212  }
213 
227  public static function forceGlobalInstance( MediaWikiServices $services ) {
228  if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
229  throw new MWException( __METHOD__ . ' must not be used outside unit tests.' );
230  }
231 
232  $old = self::getInstance();
233  self::$instance = $services;
234 
235  return $old;
236  }
237 
277  public static function resetGlobalInstance( Config $bootstrapConfig = null, $quick = '' ) {
278  if ( self::$instance === null ) {
279  // no global instance yet, nothing to reset
280  return;
281  }
282 
283  self::failIfResetNotAllowed( __METHOD__ );
284 
285  if ( $bootstrapConfig === null ) {
286  $bootstrapConfig = self::$instance->getBootstrapConfig();
287  }
288 
289  $oldInstance = self::$instance;
290 
291  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
292 
293  // Provides a traditional hook point to allow extensions to configure services.
294  $runner = new HookRunner( $oldInstance->getHookContainer() );
295  $runner->onMediaWikiServices( self::$instance );
296 
297  self::$instance->importWiring( $oldInstance, [ 'BootstrapConfig' ] );
298 
299  if ( $quick === 'quick' ) {
300  self::$instance->salvage( $oldInstance );
301  } else {
302  $oldInstance->destroy();
303  }
304  }
305 
315  private function salvage( self $other ) {
316  foreach ( $this->getServiceNames() as $name ) {
317  // The service could be new in the new instance and not registered in the
318  // other instance (e.g. an extension that was loaded after the instantiation of
319  // the other instance. Skip this service in this case. See T143974
320  try {
321  $oldService = $other->peekService( $name );
322  } catch ( NoSuchServiceException $e ) {
323  continue;
324  }
325 
326  if ( $oldService instanceof SalvageableService ) {
328  $newService = $this->getService( $name );
329  $newService->salvage( $oldService );
330  }
331  }
332 
333  $other->destroy();
334  }
335 
351  private static function newInstance( Config $bootstrapConfig, $loadWiring = '' ) {
352  $instance = new self( $bootstrapConfig );
353 
354  // Load the default wiring from the specified files.
355  if ( $loadWiring === 'load' ) {
356  $wiringFiles = $bootstrapConfig->get( 'ServiceWiringFiles' );
357  $instance->loadWiringFiles( $wiringFiles );
358  }
359 
360  return $instance;
361  }
362 
378  public static function disableStorageBackend() {
379  // TODO: also disable some Caches, JobQueues, etc
380  $destroy = [ 'DBLoadBalancer', 'DBLoadBalancerFactory' ];
381  $services = self::getInstance();
382 
383  foreach ( $destroy as $name ) {
384  $services->disableService( $name );
385  }
386 
388  }
389 
402  public static function resetChildProcessServices() {
403  // NOTE: for now, just reset everything. Since we don't know the interdependencies
404  // between services, we can't do this more selectively at this time.
405  self::resetGlobalInstance();
406 
407  // Child, reseed because there is no bug in PHP:
408  // https://bugs.php.net/bug.php?id=42465
409  mt_srand( getmypid() );
410  }
411 
433  public function resetServiceForTesting( $name, $destroy = true ) {
434  if ( !defined( 'MW_PHPUNIT_TEST' ) && !defined( 'MW_PARSER_TEST' ) ) {
435  throw new MWException( 'resetServiceForTesting() must not be used outside unit tests.' );
436  }
437 
438  $this->resetService( $name, $destroy );
439  }
440 
468  public static function failIfResetNotAllowed( $method ) {
469  if ( !defined( 'MW_PHPUNIT_TEST' )
470  && !defined( 'MW_PARSER_TEST' )
471  && !defined( 'MEDIAWIKI_INSTALL' )
472  && !defined( 'RUN_MAINTENANCE_IF_MAIN' )
473  && defined( 'MW_SERVICE_BOOTSTRAP_COMPLETE' )
474  ) {
475  throw new MWException( $method . ' may only be called during bootstrapping and unit tests!' );
476  }
477  }
478 
484  public function __construct( Config $config ) {
485  parent::__construct();
486 
487  // Register the given Config object as the bootstrap config service.
488  $this->defineService( 'BootstrapConfig', function () use ( $config ) {
489  return $config;
490  } );
491  }
492 
493  // CONVENIENCE GETTERS ////////////////////////////////////////////////////
494 
499  public function getActorMigration() : ActorMigration {
500  return $this->getService( 'ActorMigration' );
501  }
502 
507  public function getAuthManager() : AuthManager {
508  return $this->getService( 'AuthManager' );
509  }
510 
515  public function getBadFileLookup() : BadFileLookup {
516  return $this->getService( 'BadFileLookup' );
517  }
518 
523  public function getBlobStore() : BlobStore {
524  return $this->getService( 'BlobStore' );
525  }
526 
531  public function getBlobStoreFactory() : BlobStoreFactory {
532  return $this->getService( 'BlobStoreFactory' );
533  }
534 
539  public function getBlockErrorFormatter() : BlockErrorFormatter {
540  return $this->getService( 'BlockErrorFormatter' );
541  }
542 
547  public function getBlockManager() : BlockManager {
548  return $this->getService( 'BlockManager' );
549  }
550 
555  public function getBlockPermissionCheckerFactory() : BlockPermissionCheckerFactory {
556  return $this->getService( 'BlockPermissionCheckerFactory' );
557  }
558 
563  public function getBlockRestrictionStore() : BlockRestrictionStore {
564  return $this->getService( 'BlockRestrictionStore' );
565  }
566 
571  public function getBlockUserFactory() : BlockUserFactory {
572  return $this->getService( 'BlockUserFactory' );
573  }
574 
579  public function getBlockUtils() : BlockUtils {
580  return $this->getService( 'BlockUtils' );
581  }
582 
596  public function getBootstrapConfig() : Config {
597  return $this->getService( 'BootstrapConfig' );
598  }
599 
604  public function getChangeTagDefStore() : NameTableStore {
605  return $this->getService( 'ChangeTagDefStore' );
606  }
607 
612  public function getCommentStore() : CommentStore {
613  return $this->getService( 'CommentStore' );
614  }
615 
620  public function getConfigFactory() : ConfigFactory {
621  return $this->getService( 'ConfigFactory' );
622  }
623 
628  public function getConfigRepository() : ConfigRepository {
629  return $this->getService( 'ConfigRepository' );
630  }
631 
637  return $this->getService( 'ConfiguredReadOnlyMode' );
638  }
639 
644  public function getContentHandlerFactory() : IContentHandlerFactory {
645  return $this->getService( 'ContentHandlerFactory' );
646  }
647 
652  public function getContentLanguage() : Language {
653  return $this->getService( 'ContentLanguage' );
654  }
655 
660  public function getContentModelChangeFactory() : ContentModelChangeFactory {
661  return $this->getService( 'ContentModelChangeFactory' );
662  }
663 
668  public function getContentModelStore() : NameTableStore {
669  return $this->getService( 'ContentModelStore' );
670  }
671 
676  public function getContributionsLookup() : ContributionsLookup {
677  return $this->getService( 'ContributionsLookup' );
678  }
679 
684  public function getCryptHKDF() : CryptHKDF {
685  return $this->getService( 'CryptHKDF' );
686  }
687 
692  public function getDatabaseBlockStore() : DatabaseBlockStore {
693  return $this->getService( 'DatabaseBlockStore' );
694  }
695 
701  return $this->getService( 'DateFormatterFactory' );
702  }
703 
708  public function getDBLoadBalancer() : ILoadBalancer {
709  return $this->getService( 'DBLoadBalancer' );
710  }
711 
716  public function getDBLoadBalancerFactory() : LBFactory {
717  return $this->getService( 'DBLoadBalancerFactory' );
718  }
719 
724  public function getEmailer() : IEmailer {
725  return $this->getService( 'Emailer' );
726  }
727 
733  return $this->getService( 'EventRelayerGroup' );
734  }
735 
741  return $this->getService( 'ExternalStoreAccess' );
742  }
743 
749  return $this->getService( 'ExternalStoreFactory' );
750  }
751 
756  public function getFileBackendGroup() : FileBackendGroup {
757  return $this->getService( 'FileBackendGroup' );
758  }
759 
764  public function getGenderCache() : GenderCache {
765  return $this->getService( 'GenderCache' );
766  }
767 
772  public function getGlobalIdGenerator() : GlobalIdGenerator {
773  return $this->getService( 'GlobalIdGenerator' );
774  }
775 
780  public function getHookContainer() : HookContainer {
781  return $this->getService( 'HookContainer' );
782  }
783 
788  public function getHtmlCacheUpdater() : HtmlCacheUpdater {
789  return $this->getService( 'HtmlCacheUpdater' );
790  }
791 
796  public function getHttpRequestFactory() : HttpRequestFactory {
797  return $this->getService( 'HttpRequestFactory' );
798  }
799 
804  public function getInterwikiLookup() : InterwikiLookup {
805  return $this->getService( 'InterwikiLookup' );
806  }
807 
812  public function getJobRunner() : JobRunner {
813  return $this->getService( 'JobRunner' );
814  }
815 
820  public function getJsonCodec() : JsonCodec {
821  return $this->getService( 'JsonCodec' );
822  }
823 
828  public function getLanguageConverterFactory() : LanguageConverterFactory {
829  return $this->getService( 'LanguageConverterFactory' );
830  }
831 
836  public function getLanguageFactory() : LanguageFactory {
837  return $this->getService( 'LanguageFactory' );
838  }
839 
844  public function getLanguageFallback() : LanguageFallback {
845  return $this->getService( 'LanguageFallback' );
846  }
847 
852  public function getLanguageNameUtils() : LanguageNameUtils {
853  return $this->getService( 'LanguageNameUtils' );
854  }
855 
860  public function getLinkBatchFactory() : LinkBatchFactory {
861  return $this->getService( 'LinkBatchFactory' );
862  }
863 
868  public function getLinkCache() : LinkCache {
869  return $this->getService( 'LinkCache' );
870  }
871 
879  public function getLinkRenderer() : LinkRenderer {
880  return $this->getService( 'LinkRenderer' );
881  }
882 
887  public function getLinkRendererFactory() : LinkRendererFactory {
888  return $this->getService( 'LinkRendererFactory' );
889  }
890 
896  return $this->getService( 'LocalisationCache' );
897  }
898 
908  public function getLocalServerObjectCache() : BagOStuff {
909  return $this->getService( 'LocalServerObjectCache' );
910  }
911 
916  public function getLockManagerGroupFactory() : LockManagerGroupFactory {
917  return $this->getService( 'LockManagerGroupFactory' );
918  }
919 
924  public function getMagicWordFactory() : MagicWordFactory {
925  return $this->getService( 'MagicWordFactory' );
926  }
927 
935  public function getMainConfig() : Config {
936  return $this->getService( 'MainConfig' );
937  }
938 
947  public function getMainObjectStash() : BagOStuff {
948  return $this->getService( 'MainObjectStash' );
949  }
950 
959  public function getMainWANObjectCache() : WANObjectCache {
960  return $this->getService( 'MainWANObjectCache' );
961  }
962 
968  return $this->getService( 'MediaHandlerFactory' );
969  }
970 
975  public function getMergeHistoryFactory() : MergeHistoryFactory {
976  return $this->getService( 'MergeHistoryFactory' );
977  }
978 
983  public function getMessageCache() : MessageCache {
984  return $this->getService( 'MessageCache' );
985  }
986 
991  public function getMessageFormatterFactory() : IMessageFormatterFactory {
992  return $this->getService( 'MessageFormatterFactory' );
993  }
994 
999  public function getMimeAnalyzer() : MimeAnalyzer {
1000  return $this->getService( 'MimeAnalyzer' );
1001  }
1002 
1007  public function getMovePageFactory() : MovePageFactory {
1008  return $this->getService( 'MovePageFactory' );
1009  }
1010 
1015  public function getNamespaceInfo() : NamespaceInfo {
1016  return $this->getService( 'NamespaceInfo' );
1017  }
1018 
1023  public function getNameTableStoreFactory() : NameTableStoreFactory {
1024  return $this->getService( 'NameTableStoreFactory' );
1025  }
1026 
1034  public function getObjectFactory() : ObjectFactory {
1035  return $this->getService( 'ObjectFactory' );
1036  }
1037 
1043  return $this->getService( 'OldRevisionImporter' );
1044  }
1045 
1050  public function getPageEditStash() : PageEditStash {
1051  return $this->getService( 'PageEditStash' );
1052  }
1053 
1058  public function getPageProps() : PageProps {
1059  return $this->getService( 'PageProps' );
1060  }
1061 
1066  public function getParser() : Parser {
1067  return $this->getService( 'Parser' );
1068  }
1069 
1074  public function getParserCache() : ParserCache {
1075  return $this->getService( 'ParserCache' );
1076  }
1077 
1082  public function getParserCacheFactory() : ParserCacheFactory {
1083  return $this->getService( 'ParserCacheFactory' );
1084  }
1085 
1090  public function getParserFactory() : ParserFactory {
1091  return $this->getService( 'ParserFactory' );
1092  }
1093 
1098  public function getParserOutputAccess() : ParserOutputAccess {
1099  return $this->getService( 'ParserOutputAccess' );
1100  }
1101 
1106  public function getPasswordFactory() : PasswordFactory {
1107  return $this->getService( 'PasswordFactory' );
1108  }
1109 
1114  public function getPasswordReset() : PasswordReset {
1115  return $this->getService( 'PasswordReset' );
1116  }
1117 
1122  public function getPerDbNameStatsdDataFactory() : StatsdDataFactoryInterface {
1123  return $this->getService( 'PerDbNameStatsdDataFactory' );
1124  }
1125 
1130  public function getPermissionManager() : PermissionManager {
1131  return $this->getService( 'PermissionManager' );
1132  }
1133 
1138  public function getPreferencesFactory() : PreferencesFactory {
1139  return $this->getService( 'PreferencesFactory' );
1140  }
1141 
1146  public function getProxyLookup() : ProxyLookup {
1147  return $this->getService( 'ProxyLookup' );
1148  }
1149 
1154  public function getReadOnlyMode() : ReadOnlyMode {
1155  return $this->getService( 'ReadOnlyMode' );
1156  }
1157 
1162  public function getRepoGroup() : RepoGroup {
1163  return $this->getService( 'RepoGroup' );
1164  }
1165 
1170  public function getResourceLoader() : ResourceLoader {
1171  return $this->getService( 'ResourceLoader' );
1172  }
1173 
1178  public function getRevertedTagUpdateManager() : RevertedTagUpdateManager {
1179  return $this->getService( 'RevertedTagUpdateManager' );
1180  }
1181 
1186  public function getRevisionFactory() : RevisionFactory {
1187  return $this->getService( 'RevisionFactory' );
1188  }
1189 
1194  public function getRevisionLookup() : RevisionLookup {
1195  return $this->getService( 'RevisionLookup' );
1196  }
1197 
1202  public function getRevisionRenderer() : RevisionRenderer {
1203  return $this->getService( 'RevisionRenderer' );
1204  }
1205 
1210  public function getRevisionStore() : RevisionStore {
1211  return $this->getService( 'RevisionStore' );
1212  }
1213 
1218  public function getRevisionStoreFactory() : RevisionStoreFactory {
1219  return $this->getService( 'RevisionStoreFactory' );
1220  }
1221 
1226  public function newSearchEngine() : SearchEngine {
1227  // New engine object every time, since they keep state
1228  return $this->getService( 'SearchEngineFactory' )->create();
1229  }
1230 
1236  return $this->getService( 'SearchEngineConfig' );
1237  }
1238 
1244  return $this->getService( 'SearchEngineFactory' );
1245  }
1246 
1251  public function getShellCommandFactory() : CommandFactory {
1252  return $this->getService( 'ShellCommandFactory' );
1253  }
1254 
1259  public function getSiteLookup() : SiteLookup {
1260  return $this->getService( 'SiteLookup' );
1261  }
1262 
1267  public function getSiteStore() : SiteStore {
1268  return $this->getService( 'SiteStore' );
1269  }
1270 
1275  public function getSkinFactory() : SkinFactory {
1276  return $this->getService( 'SkinFactory' );
1277  }
1278 
1283  public function getSlotRoleRegistry() : SlotRoleRegistry {
1284  return $this->getService( 'SlotRoleRegistry' );
1285  }
1286 
1291  public function getSlotRoleStore() : NameTableStore {
1292  return $this->getService( 'SlotRoleStore' );
1293  }
1294 
1299  public function getSpamChecker() : SpamChecker {
1300  return $this->getService( 'SpamChecker' );
1301  }
1302 
1307  public function getSpecialPageFactory() : SpecialPageFactory {
1308  return $this->getService( 'SpecialPageFactory' );
1309  }
1310 
1316  return $this->getService( 'StatsdDataFactory' );
1317  }
1318 
1323  public function getTalkPageNotificationManager() : TalkPageNotificationManager {
1324  return $this->getService( 'TalkPageNotificationManager' );
1325  }
1326 
1331  public function getTempFSFileFactory() : TempFSFileFactory {
1332  return $this->getService( 'TempFSFileFactory' );
1333  }
1334 
1339  public function getTitleFactory() : TitleFactory {
1340  return $this->getService( 'TitleFactory' );
1341  }
1342 
1347  public function getTitleFormatter() : TitleFormatter {
1348  return $this->getService( 'TitleFormatter' );
1349  }
1350 
1355  public function getTitleParser() : TitleParser {
1356  return $this->getService( 'TitleParser' );
1357  }
1358 
1363  public function getUnblockUserFactory() : UnblockUserFactory {
1364  return $this->getService( 'UnblockUserFactory' );
1365  }
1366 
1372  return $this->getService( 'UploadRevisionImporter' );
1373  }
1374 
1379  public function getUserCache() : UserCache {
1380  return $this->getService( 'UserCache' );
1381  }
1382 
1387  public function getUserEditTracker() : UserEditTracker {
1388  return $this->getService( 'UserEditTracker' );
1389  }
1390 
1395  public function getUserFactory() : UserFactory {
1396  return $this->getService( 'UserFactory' );
1397  }
1398 
1403  public function getUserGroupManager() : UserGroupManager {
1404  return $this->getService( 'UserGroupManager' );
1405  }
1406 
1411  public function getUserGroupManagerFactory() : UserGroupManagerFactory {
1412  return $this->getService( 'UserGroupManagerFactory' );
1413  }
1414 
1420  return $this->getService( 'UserNamePrefixSearch' );
1421  }
1422 
1427  public function getUserNameUtils() : UserNameUtils {
1428  return $this->getService( 'UserNameUtils' );
1429  }
1430 
1435  public function getUserOptionsLookup() : UserOptionsLookup {
1436  return $this->getService( 'UserOptionsLookup' );
1437  }
1438 
1443  public function getUserOptionsManager() : UserOptionsManager {
1444  return $this->getService( 'UserOptionsManager' );
1445  }
1446 
1452  return $this->getService( 'VirtualRESTServiceClient' );
1453  }
1454 
1460  return $this->getService( 'WatchedItemQueryService' );
1461  }
1462 
1468  return $this->getService( 'WatchedItemStore' );
1469  }
1470 
1475  public function getWatchlistNotificationManager() : WatchlistNotificationManager {
1476  return $this->getService( 'WatchlistNotificationManager' );
1477  }
1478 
1483  public function getWikiPageFactory() : WikiPageFactory {
1484  return $this->getService( 'WikiPageFactory' );
1485  }
1486 
1492  return $this->getService( 'OldRevisionImporter' );
1493  }
1494 
1500  return $this->getService( 'WikiRevisionOldRevisionImporterNoUpdates' );
1501  }
1502 
1508  return $this->getService( 'UploadRevisionImporter' );
1509  }
1510 
1511 }
EventRelayerGroup
Factory class for spawning EventRelayer objects using configuration.
Definition: EventRelayerGroup.php:26
MediaWiki\MediaWikiServices\getMessageCache
getMessageCache()
Definition: MediaWikiServices.php:983
MediaWiki\MediaWikiServices\getBlockErrorFormatter
getBlockErrorFormatter()
Definition: MediaWikiServices.php:539
ObjectCache\clear
static clear()
Clear all the cached instances.
Definition: ObjectCache.php:281
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:1251
MediaWiki\Block\BlockPermissionCheckerFactory
Factory class for BlockPermissionChecker.
Definition: BlockPermissionCheckerFactory.php:34
MediaWiki\MediaWikiServices\getInterwikiLookup
getInterwikiLookup()
Definition: MediaWikiServices.php:804
MediaWiki\Block\BlockUserFactory
Definition: BlockUserFactory.php:30
MediaWiki\MediaWikiServices\getSpamChecker
getSpamChecker()
Definition: MediaWikiServices.php:1299
MediaWiki\MediaWikiServices\getResourceLoader
getResourceLoader()
Definition: MediaWikiServices.php:1170
MediaWiki\MediaWikiServices\getSearchEngineConfig
getSearchEngineConfig()
Definition: MediaWikiServices.php:1235
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:1259
MediaWiki\MediaWikiServices\getParserFactory
getParserFactory()
Definition: MediaWikiServices.php:1090
MediaWiki\MediaWikiServices\getBlockManager
getBlockManager()
Definition: MediaWikiServices.php:547
MediaWiki\MediaWikiServices\getJobRunner
getJobRunner()
Definition: MediaWikiServices.php:812
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:563
MediaWiki\MediaWikiServices\getDBLoadBalancer
getDBLoadBalancer()
Definition: MediaWikiServices.php:708
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition: MediaWikiServices.php:165
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
Revision\RevisionStore
Service for looking up page revisions.
Definition: RevisionStore.php:80
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:668
MediaWiki\MediaWikiServices\getChangeTagDefStore
getChangeTagDefStore()
Definition: MediaWikiServices.php:604
MediaWiki\MediaWikiServices\getLanguageConverterFactory
getLanguageConverterFactory()
Definition: MediaWikiServices.php:828
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:555
MediaWiki\MediaWikiServices\getRevisionLookup
getRevisionLookup()
Definition: MediaWikiServices.php:1194
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\getBootstrapConfig
getBootstrapConfig()
Returns the Config object containing the bootstrap configuration.
Definition: MediaWikiServices.php:596
MediaWiki\FileBackend\LockManager\LockManagerGroupFactory
Service to construct LockManagerGroups.
Definition: LockManagerGroupFactory.php:11
MediaWiki\MediaWikiServices\getCommentStore
getCommentStore()
Definition: MediaWikiServices.php:612
MediaWiki\MediaWikiServices\getGlobalIdGenerator
getGlobalIdGenerator()
Definition: MediaWikiServices.php:772
MediaWiki\MediaWikiServices\getSlotRoleStore
getSlotRoleStore()
Definition: MediaWikiServices.php:1291
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:740
MediaWiki\MediaWikiServices\getUserNamePrefixSearch
getUserNamePrefixSearch()
Definition: MediaWikiServices.php:1419
MediaWiki\MediaWikiServices\getUserOptionsManager
getUserOptionsManager()
Definition: MediaWikiServices.php:1443
BagOStuff
Class representing a cache/ephemeral data store.
Definition: BagOStuff.php:71
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:499
MediaWiki\MediaWikiServices\getJsonCodec
getJsonCodec()
Definition: MediaWikiServices.php:820
ActorMigration
This class handles the logic for the actor table migration and should always be used in lieu of direc...
Definition: ActorMigration.php:41
MediaWiki\MediaWikiServices\getBlockUtils
getBlockUtils()
Definition: MediaWikiServices.php:579
MediaWiki\MediaWikiServices\getWikiPageFactory
getWikiPageFactory()
Definition: MediaWikiServices.php:1483
MediaWiki\Block\DatabaseBlockStore
Definition: DatabaseBlockStore.php:44
Parser\ParserCacheFactory
Definition: ParserCacheFactory.php:36
MediaWiki\MediaWikiServices\getPermissionManager
getPermissionManager()
Definition: MediaWikiServices.php:1130
MediaWiki\MediaWikiServices\getLanguageFallback
getLanguageFallback()
Definition: MediaWikiServices.php:844
MediaWiki\MediaWikiServices\getGenderCache
getGenderCache()
Definition: MediaWikiServices.php:764
MediaWiki\MediaWikiServices\getEventRelayerGroup
getEventRelayerGroup()
Definition: MediaWikiServices.php:732
MediaWiki\MediaWikiServices\getLockManagerGroupFactory
getLockManagerGroupFactory()
Definition: MediaWikiServices.php:916
MediaWiki\Languages\LanguageConverterFactory
An interface for creating language converters.
Definition: LanguageConverterFactory.php:44
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:1042
MediaWiki\MediaWikiServices\getPasswordReset
getPasswordReset()
Definition: MediaWikiServices.php:1114
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:1371
MediaWiki\MediaWikiServices\getProxyLookup
getProxyLookup()
Definition: MediaWikiServices.php:1146
MediaWiki\MediaWikiServices\getSkinFactory
getSkinFactory()
Definition: MediaWikiServices.php:1275
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:468
MediaWiki\MediaWikiServices\getUserCache
getUserCache()
Definition: MediaWikiServices.php:1379
MediaWiki\MediaWikiServices\getInstance
static getInstance()
Returns the global default instance of the top level service locator.
Definition: MediaWikiServices.php:197
MediaWiki\MediaWikiServices\getLocalisationCache
getLocalisationCache()
Definition: MediaWikiServices.php:895
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:1307
MediaWiki\MediaWikiServices\getAuthManager
getAuthManager()
Definition: MediaWikiServices.php:507
MediaWiki\MediaWikiServices\getMagicWordFactory
getMagicWordFactory()
Definition: MediaWikiServices.php:924
MediaWiki\MediaWikiServices\getPerDbNameStatsdDataFactory
getPerDbNameStatsdDataFactory()
Definition: MediaWikiServices.php:1122
MWException
MediaWiki exception.
Definition: MWException.php:29
MediaWiki\MediaWikiServices\resetServiceForTesting
resetServiceForTesting( $name, $destroy=true)
Resets the given service for testing purposes.
Definition: MediaWikiServices.php:433
MediaWiki\MediaWikiServices\getCryptHKDF
getCryptHKDF()
Definition: MediaWikiServices.php:684
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:277
MediaWiki\MediaWikiServices\getTempFSFileFactory
getTempFSFileFactory()
Definition: MediaWikiServices.php:1331
MediaWiki\MediaWikiServices\getWatchedItemStore
getWatchedItemStore()
Definition: MediaWikiServices.php:1467
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:644
MediaWiki\User\WatchlistNotificationManager
WatchlistNotificationManager service.
Definition: WatchlistNotificationManager.php:40
MediaWiki\MediaWikiServices\getMediaHandlerFactory
getMediaHandlerFactory()
Definition: MediaWikiServices.php:967
Config\get
get( $name)
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
MediaWiki\MediaWikiServices\getRevertedTagUpdateManager
getRevertedTagUpdateManager()
Definition: MediaWikiServices.php:1178
CryptHKDF
Definition: CryptHKDF.php:33
MediaWiki\MediaWikiServices\getWatchedItemQueryService
getWatchedItemQueryService()
Definition: MediaWikiServices.php:1459
MediaWiki\MediaWikiServices\getUserEditTracker
getUserEditTracker()
Definition: MediaWikiServices.php:1387
MediaWiki\Cache\LinkBatchFactory
Definition: LinkBatchFactory.php:38
MediaWiki\MediaWikiServices\getUserFactory
getUserFactory()
Definition: MediaWikiServices.php:1395
MediaWiki\MediaWikiServices\getMergeHistoryFactory
getMergeHistoryFactory()
Definition: MediaWikiServices.php:975
MediaWiki\MediaWikiServices\getTitleParser
getTitleParser()
Definition: MediaWikiServices.php:1355
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:756
MediaWiki
A helper class for throttling authentication attempts.
MediaWiki\MediaWikiServices\getParserCacheFactory
getParserCacheFactory()
Definition: MediaWikiServices.php:1082
MediaWiki\Block\UnblockUserFactory
Definition: UnblockUserFactory.php:29
MediaWiki\MediaWikiServices\getMessageFormatterFactory
getMessageFormatterFactory()
Definition: MediaWikiServices.php:991
Page\WikiPageFactory
Definition: WikiPageFactory.php:19
MediaWiki\MediaWikiServices\newSearchEngine
newSearchEngine()
Definition: MediaWikiServices.php:1226
MediaWiki\MediaWikiServices\getMainConfig
getMainConfig()
Returns the Config object that provides configuration for MediaWiki core.
Definition: MediaWikiServices.php:935
MediaWiki\MediaWikiServices\getObjectFactory
getObjectFactory()
ObjectFactory is intended for instantiating "handlers" from declarative definitions,...
Definition: MediaWikiServices.php:1034
MediaWiki\MediaWikiServices\getSearchEngineFactory
getSearchEngineFactory()
Definition: MediaWikiServices.php:1243
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:378
MediaWiki\MediaWikiServices\getRevisionStoreFactory
getRevisionStoreFactory()
Definition: MediaWikiServices.php:1218
MediaWiki\MediaWikiServices\getDBLoadBalancerFactory
getDBLoadBalancerFactory()
Definition: MediaWikiServices.php:716
MediaWiki\MediaWikiServices\newInstance
static newInstance(Config $bootstrapConfig, $loadWiring='')
Creates a new MediaWikiServices instance and initializes it according to the given $bootstrapConfig.
Definition: MediaWikiServices.php:351
MediaWiki\MediaWikiServices\getTitleFormatter
getTitleFormatter()
Definition: MediaWikiServices.php:1347
MediaWiki\MediaWikiServices\getLinkBatchFactory
getLinkBatchFactory()
Definition: MediaWikiServices.php:860
MediaWiki\MediaWikiServices\getHttpRequestFactory
getHttpRequestFactory()
Definition: MediaWikiServices.php:796
MediaWiki\MediaWikiServices\getRevisionFactory
getRevisionFactory()
Definition: MediaWikiServices.php:1186
MediaWiki\MediaWikiServices\getParserCache
getParserCache()
Definition: MediaWikiServices.php:1074
MediaWiki\MediaWikiServices\salvage
salvage(self $other)
@noinspection PhpDocSignatureInspection
Definition: MediaWikiServices.php:315
MediaWiki\FileBackend\FSFile\TempFSFileFactory
Definition: TempFSFileFactory.php:10
MediaWiki\MediaWikiServices\getPreferencesFactory
getPreferencesFactory()
Definition: MediaWikiServices.php:1138
MediaWiki\MediaWikiServices\__construct
__construct(Config $config)
Definition: MediaWikiServices.php:484
MediaWiki\MediaWikiServices\getContentModelChangeFactory
getContentModelChangeFactory()
Definition: MediaWikiServices.php:660
UserNamePrefixSearch
Handles searching prefixes of user names.
Definition: UserNamePrefixSearch_deprecated.php:37
MediaWiki\User\UserGroupManagerFactory
Factory service for UserGroupManager instances.
Definition: UserGroupManagerFactory.php:35
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:50
MediaWiki\MediaWikiServices\getPasswordFactory
getPasswordFactory()
Definition: MediaWikiServices.php:1106
ParserFactory
Definition: ParserFactory.php:33
MediaWiki\MediaWikiServices\getPageEditStash
getPageEditStash()
Definition: MediaWikiServices.php:1050
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporterNoUpdates
getWikiRevisionOldRevisionImporterNoUpdates()
Definition: MediaWikiServices.php:1499
MediaWiki\MediaWikiServices\getHtmlCacheUpdater
getHtmlCacheUpdater()
Definition: MediaWikiServices.php:788
MediaWiki\Content\IContentHandlerFactory
Definition: IContentHandlerFactory.php:10
MediaWiki\MediaWikiServices\getVirtualRESTServiceClient
getVirtualRESTServiceClient()
Definition: MediaWikiServices.php:1451
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:515
MediaWiki\MediaWikiServices\getConfigFactory
getConfigFactory()
Definition: MediaWikiServices.php:620
MediaWiki\Shell\CommandFactory
Factory facilitating dependency injection for Command.
Definition: CommandFactory.php:32
MediaWiki\MediaWikiServices\getWikiRevisionUploadImporter
getWikiRevisionUploadImporter()
Definition: MediaWikiServices.php:1507
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:1427
MediaWiki\MediaWikiServices\getUserGroupManagerFactory
getUserGroupManagerFactory()
Definition: MediaWikiServices.php:1411
HtmlCacheUpdater
Class to invalidate the CDN and HTMLFileCache entries associated with URLs/titles.
Definition: HtmlCacheUpdater.php:30
MediaWiki\MediaWikiServices\getRevisionRenderer
getRevisionRenderer()
Definition: MediaWikiServices.php:1202
MediaWiki\MediaWikiServices\getUserOptionsLookup
getUserOptionsLookup()
Definition: MediaWikiServices.php:1435
MediaWiki\MediaWikiServices\getContributionsLookup
getContributionsLookup()
Definition: MediaWikiServices.php:676
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:179
MediaWiki\Storage\NameTableStore
Definition: NameTableStore.php:36
MediaWiki\MediaWikiServices\getExternalStoreFactory
getExternalStoreFactory()
Definition: MediaWikiServices.php:748
Parser
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...
Definition: Parser.php:84
Revision\RevisionStoreFactory
Factory service for RevisionStore instances.
Definition: RevisionStoreFactory.php:51
MediaWiki\User\UserOptionsLookup
Provides access to user options.
Definition: UserOptionsLookup.php:29
MediaWiki\MediaWikiServices\getDateFormatterFactory
getDateFormatterFactory()
Definition: MediaWikiServices.php:700
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:1339
MediaWiki\Auth\AuthManager
This serves as the entry point to the authentication system.
Definition: AuthManager.php:92
MediaWiki\Storage\BlobStore
Service for loading and storing data blobs.
Definition: BlobStore.php:35
Revision\ContributionsLookup
Definition: ContributionsLookup.php:24
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:959
MediaWiki\MediaWikiServices\getMimeAnalyzer
getMimeAnalyzer()
Definition: MediaWikiServices.php:999
IBufferingStatsdDataFactory
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
Definition: IBufferingStatsdDataFactory.php:13
MediaWiki\MediaWikiServices\getSiteStore
getSiteStore()
Definition: MediaWikiServices.php:1267
MediaWiki\MediaWikiServices\getBlobStore
getBlobStore()
Definition: MediaWikiServices.php:523
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:1363
MediaWiki\MediaWikiServices\getLocalServerObjectCache
getLocalServerObjectCache()
Returns the main server-local cache, yeilding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:908
MediaWiki\MediaWikiServices\getMovePageFactory
getMovePageFactory()
Definition: MediaWikiServices.php:1007
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:531
MediaWiki\MediaWikiServices\getConfiguredReadOnlyMode
getConfiguredReadOnlyMode()
Definition: MediaWikiServices.php:636
MediaWiki\MediaWikiServices\getLanguageFactory
getLanguageFactory()
Definition: MediaWikiServices.php:836
MediaWiki\MediaWikiServices\getRevisionStore
getRevisionStore()
Definition: MediaWikiServices.php:1210
MediaWiki\MediaWikiServices\getParserOutputAccess
getParserOutputAccess()
Definition: MediaWikiServices.php:1098
MediaWiki\User\UserEditTracker
Track info about user edit counts and timings.
Definition: UserEditTracker.php:19
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporter
getWikiRevisionOldRevisionImporter()
Definition: MediaWikiServices.php:1491
PageProps
Gives access to properties of a page.
Definition: PageProps.php:33
MediaWiki\User\UserNameUtils
UserNameUtils service.
Definition: UserNameUtils.php:42
MediaWiki\MediaWikiServices\getParser
getParser()
Definition: MediaWikiServices.php:1066
MediaWiki\MediaWikiServices\getLanguageNameUtils
getLanguageNameUtils()
Definition: MediaWikiServices.php:852
MediaWiki\MediaWikiServices\getDatabaseBlockStore
getDatabaseBlockStore()
Definition: MediaWikiServices.php:692
MediaWiki\MediaWikiServices\getNamespaceInfo
getNamespaceInfo()
Definition: MediaWikiServices.php:1015
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:402
MediaWiki\MediaWikiServices\getSlotRoleRegistry
getSlotRoleRegistry()
Definition: MediaWikiServices.php:1283
TitleFormatter
A title formatter service for MediaWiki.
Definition: TitleFormatter.php:34
Wikimedia\Rdbms\LBFactory
An interface for generating database load balancers.
Definition: LBFactory.php:41
MediaWiki\MediaWikiServices\getContentLanguage
getContentLanguage()
Definition: MediaWikiServices.php:652
TitleFactory
Creates Title objects.
Definition: TitleFactory.php:33
MediaWiki\MediaWikiServices\getConfigRepository
getConfigRepository()
Definition: MediaWikiServices.php:628
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:1058
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:724
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:567
MediaWiki\MediaWikiServices\getLinkRendererFactory
getLinkRendererFactory()
Definition: MediaWikiServices.php:887
MediaWiki\MediaWikiServices\getBlockUserFactory
getBlockUserFactory()
Definition: MediaWikiServices.php:571
MediaWiki\MediaWikiServices\getUserGroupManager
getUserGroupManager()
Definition: MediaWikiServices.php:1403
MediaWiki\Json\JsonCodec
Definition: JsonCodec.php:36
JobRunner
Job queue runner utility methods.
Definition: JobRunner.php:41
MediaWiki\MediaWikiServices\getTalkPageNotificationManager
getTalkPageNotificationManager()
Definition: MediaWikiServices.php:1323
MediaWiki\MediaWikiServices\getLinkRenderer
getLinkRenderer()
LinkRenderer instance that can be used if no custom options are needed.
Definition: MediaWikiServices.php:879
MediaWiki\MediaWikiServices\getHookContainer
getHookContainer()
Definition: MediaWikiServices.php:780
MediaWiki\MediaWikiServices\getWatchlistNotificationManager
getWatchlistNotificationManager()
Definition: MediaWikiServices.php:1475
MediaWiki\MediaWikiServices\getMainObjectStash
getMainObjectStash()
Returns the main object stash, yeilding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:947
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:868
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:1154
MediaWiki\User\UserFactory
Creates User objects.
Definition: UserFactory.php:40
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:227
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:1315
MediaWiki\MediaWikiServices\getNameTableStoreFactory
getNameTableStoreFactory()
Definition: MediaWikiServices.php:1023
MediaWiki\MediaWikiServices\getRepoGroup
getRepoGroup()
Definition: MediaWikiServices.php:1162