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;
95 use MessageCache;
96 use MimeAnalyzer;
97 use MWException;
98 use NamespaceInfo;
99 use ObjectCache;
101 use PageProps;
102 use Parser;
103 use ParserCache;
104 use ParserFactory;
105 use PasswordFactory;
106 use PasswordReset;
107 use ProxyLookup;
108 use ReadOnlyMode;
109 use RepoGroup;
110 use ResourceLoader;
111 use SearchEngine;
114 use SiteLookup;
115 use SiteStore;
116 use SkinFactory;
117 use TitleFactory;
118 use TitleFormatter;
119 use TitleParser;
121 use UserCache;
123 use WANObjectCache;
127 use Wikimedia\NonSerializable\NonSerializableTrait;
128 use Wikimedia\ObjectFactory;
131 use Wikimedia\RequestTimeout\CriticalSectionProvider;
132 use Wikimedia\Services\NoSuchServiceException;
133 use Wikimedia\Services\SalvageableService;
134 use Wikimedia\Services\ServiceContainer;
136 
173 class MediaWikiServices extends ServiceContainer {
174  use NonSerializableTrait;
175 
179  private static $globalInstanceAllowed = false;
180 
184  private static $instance = null;
185 
197  public static function allowGlobalInstance() {
198  self::$globalInstanceAllowed = true;
199 
200  if ( self::$instance ) {
201  // TODO: in 1.37, getInstance() should fail if $globalInstanceAllowed is false! (T153256)
202  // Until then, we have to reset service instances that have already been created.
203  // No need to warn here, getService() has already triggered a deprecation warning.
204  self::resetGlobalInstance( null, 'quick' );
205  }
206  }
207 
214  public static function hasInstance() {
215  return self::$instance !== null;
216  }
217 
234  public static function getInstance() : self {
235  // TODO: in 1.37, getInstance() should fail if $globalInstanceAllowed is false! (T153256)
236  if ( !self::$globalInstanceAllowed ) {
237  wfDeprecatedMsg( 'Premature access to service container', '1.36' );
238  }
239 
240  if ( self::$instance === null ) {
241  // NOTE: constructing GlobalVarConfig here is not particularly pretty,
242  // but some information from the global scope has to be injected here,
243  // even if it's just a file name or database credentials to load
244  // configuration from.
245  $bootstrapConfig = new GlobalVarConfig();
246  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
247 
248  // Provides a traditional hook point to allow extensions to configure services.
249  // NOTE: Ideally this would be in newInstance() but it causes an infinite run loop
250  $runner = new HookRunner( self::$instance->getHookContainer() );
251  $runner->onMediaWikiServices( self::$instance );
252  }
253  return self::$instance;
254  }
255 
256  public function getService( $name ) {
257  // TODO: in 1.37, getInstance() should fail if $globalInstanceAllowed is false! (T153256)
258  if ( !self::$globalInstanceAllowed && $this === self::$instance ) {
259  wfDeprecatedMsg( "Premature access to service '$name'", '1.36', false, 3 );
260  }
261 
262  return parent::getService( $name );
263  }
264 
278  public static function forceGlobalInstance( MediaWikiServices $services ) {
279  if ( !defined( 'MW_PHPUNIT_TEST' ) && !defined( 'MW_PARSER_TEST' ) ) {
280  throw new MWException( __METHOD__ . ' must not be used outside unit tests.' );
281  }
282 
283  $old = self::getInstance();
284  self::$instance = $services;
285 
286  return $old;
287  }
288 
328  public static function resetGlobalInstance( Config $bootstrapConfig = null, $quick = '' ) {
329  if ( self::$instance === null ) {
330  // no global instance yet, nothing to reset
331  return;
332  }
333 
334  self::failIfResetNotAllowed( __METHOD__ );
335 
336  if ( $bootstrapConfig === null ) {
337  $bootstrapConfig = self::$instance->getBootstrapConfig();
338  }
339 
340  $oldInstance = self::$instance;
341 
342  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
343 
344  // Provides a traditional hook point to allow extensions to configure services.
345  $runner = new HookRunner( $oldInstance->getHookContainer() );
346  $runner->onMediaWikiServices( self::$instance );
347 
348  self::$instance->importWiring( $oldInstance, [ 'BootstrapConfig' ] );
349 
350  if ( $quick === 'quick' ) {
351  self::$instance->salvage( $oldInstance );
352  } else {
353  $oldInstance->destroy();
354  }
355  }
356 
366  private function salvage( self $other ) {
367  foreach ( $this->getServiceNames() as $name ) {
368  // The service could be new in the new instance and not registered in the
369  // other instance (e.g. an extension that was loaded after the instantiation of
370  // the other instance. Skip this service in this case. See T143974
371  try {
372  $oldService = $other->peekService( $name );
373  } catch ( NoSuchServiceException $e ) {
374  continue;
375  }
376 
377  if ( $oldService instanceof SalvageableService ) {
379  $newService = $this->getService( $name );
380  $newService->salvage( $oldService );
381  }
382  }
383 
384  $other->destroy();
385  }
386 
402  private static function newInstance( Config $bootstrapConfig, $loadWiring = '' ) {
403  $instance = new self( $bootstrapConfig );
404 
405  // Load the default wiring from the specified files.
406  if ( $loadWiring === 'load' ) {
407  $wiringFiles = $bootstrapConfig->get( 'ServiceWiringFiles' );
408  $instance->loadWiringFiles( $wiringFiles );
409  }
410 
411  return $instance;
412  }
413 
429  public static function disableStorageBackend() {
430  // TODO: also disable some Caches, JobQueues, etc
431  $destroy = [ 'DBLoadBalancer', 'DBLoadBalancerFactory' ];
432  $services = self::getInstance();
433 
434  foreach ( $destroy as $name ) {
435  $services->disableService( $name );
436  }
437 
439  }
440 
453  public static function resetChildProcessServices() {
454  // NOTE: for now, just reset everything. Since we don't know the interdependencies
455  // between services, we can't do this more selectively at this time.
456  self::resetGlobalInstance();
457 
458  // Child, reseed because there is no bug in PHP:
459  // https://bugs.php.net/bug.php?id=42465
460  mt_srand( getmypid() );
461  }
462 
484  public function resetServiceForTesting( $name, $destroy = true ) {
485  if ( !defined( 'MW_PHPUNIT_TEST' ) && !defined( 'MW_PARSER_TEST' ) ) {
486  throw new MWException( 'resetServiceForTesting() must not be used outside unit tests.' );
487  }
488 
489  $this->resetService( $name, $destroy );
490  }
491 
519  public static function failIfResetNotAllowed( $method ) {
520  if ( !defined( 'MW_PHPUNIT_TEST' )
521  && !defined( 'MW_PARSER_TEST' )
522  && !defined( 'MEDIAWIKI_INSTALL' )
523  && !defined( 'RUN_MAINTENANCE_IF_MAIN' )
524  && defined( 'MW_SERVICE_BOOTSTRAP_COMPLETE' )
525  ) {
526  throw new MWException( $method . ' may only be called during bootstrapping and unit tests!' );
527  }
528  }
529 
535  public function __construct( Config $config ) {
536  parent::__construct();
537 
538  // Register the given Config object as the bootstrap config service.
539  $this->defineService( 'BootstrapConfig', static function () use ( $config ) {
540  return $config;
541  } );
542  }
543 
544  // CONVENIENCE GETTERS ////////////////////////////////////////////////////
545 
550  public function getActorMigration() : ActorMigration {
551  return $this->getService( 'ActorMigration' );
552  }
553 
558  public function getActorNormalization() : ActorNormalization {
559  return $this->getService( 'ActorNormalization' );
560  }
561 
566  public function getActorStore() : ActorStore {
567  return $this->getService( 'ActorStore' );
568  }
569 
574  public function getActorStoreFactory() : ActorStoreFactory {
575  return $this->getService( 'ActorStoreFactory' );
576  }
577 
582  public function getAuthManager() : AuthManager {
583  return $this->getService( 'AuthManager' );
584  }
585 
590  public function getBadFileLookup() : BadFileLookup {
591  return $this->getService( 'BadFileLookup' );
592  }
593 
598  public function getBlobStore() : BlobStore {
599  return $this->getService( 'BlobStore' );
600  }
601 
606  public function getBlobStoreFactory() : BlobStoreFactory {
607  return $this->getService( 'BlobStoreFactory' );
608  }
609 
614  public function getBlockErrorFormatter() : BlockErrorFormatter {
615  return $this->getService( 'BlockErrorFormatter' );
616  }
617 
622  public function getBlockManager() : BlockManager {
623  return $this->getService( 'BlockManager' );
624  }
625 
630  public function getBlockPermissionCheckerFactory() : BlockPermissionCheckerFactory {
631  return $this->getService( 'BlockPermissionCheckerFactory' );
632  }
633 
638  public function getBlockRestrictionStore() : BlockRestrictionStore {
639  return $this->getService( 'BlockRestrictionStore' );
640  }
641 
646  public function getBlockUserFactory() : BlockUserFactory {
647  return $this->getService( 'BlockUserFactory' );
648  }
649 
654  public function getBlockUtils() : BlockUtils {
655  return $this->getService( 'BlockUtils' );
656  }
657 
671  public function getBootstrapConfig() : Config {
672  return $this->getService( 'BootstrapConfig' );
673  }
674 
679  public function getChangeTagDefStore() : NameTableStore {
680  return $this->getService( 'ChangeTagDefStore' );
681  }
682 
687  public function getCommentStore() : CommentStore {
688  return $this->getService( 'CommentStore' );
689  }
690 
695  public function getConfigFactory() : ConfigFactory {
696  return $this->getService( 'ConfigFactory' );
697  }
698 
703  public function getConfigRepository() : ConfigRepository {
704  return $this->getService( 'ConfigRepository' );
705  }
706 
712  return $this->getService( 'ConfiguredReadOnlyMode' );
713  }
714 
719  public function getContentHandlerFactory() : IContentHandlerFactory {
720  return $this->getService( 'ContentHandlerFactory' );
721  }
722 
727  public function getContentLanguage() : Language {
728  return $this->getService( 'ContentLanguage' );
729  }
730 
735  public function getContentModelChangeFactory() : ContentModelChangeFactory {
736  return $this->getService( 'ContentModelChangeFactory' );
737  }
738 
743  public function getContentModelStore() : NameTableStore {
744  return $this->getService( 'ContentModelStore' );
745  }
746 
751  public function getContributionsLookup() : ContributionsLookup {
752  return $this->getService( 'ContributionsLookup' );
753  }
754 
759  public function getCriticalSectionProvider() : CriticalSectionProvider {
760  return $this->getService( 'CriticalSectionProvider' );
761  }
762 
767  public function getCryptHKDF() : CryptHKDF {
768  return $this->getService( 'CryptHKDF' );
769  }
770 
775  public function getDatabaseBlockStore() : DatabaseBlockStore {
776  return $this->getService( 'DatabaseBlockStore' );
777  }
778 
784  return $this->getService( 'DateFormatterFactory' );
785  }
786 
791  public function getDBLoadBalancer() : ILoadBalancer {
792  return $this->getService( 'DBLoadBalancer' );
793  }
794 
799  public function getDBLoadBalancerFactory() : LBFactory {
800  return $this->getService( 'DBLoadBalancerFactory' );
801  }
802 
807  public function getEmailer() : IEmailer {
808  return $this->getService( 'Emailer' );
809  }
810 
816  return $this->getService( 'EventRelayerGroup' );
817  }
818 
824  return $this->getService( 'ExternalStoreAccess' );
825  }
826 
832  return $this->getService( 'ExternalStoreFactory' );
833  }
834 
839  public function getFileBackendGroup() : FileBackendGroup {
840  return $this->getService( 'FileBackendGroup' );
841  }
842 
847  public function getGenderCache() : GenderCache {
848  return $this->getService( 'GenderCache' );
849  }
850 
855  public function getGlobalIdGenerator() : GlobalIdGenerator {
856  return $this->getService( 'GlobalIdGenerator' );
857  }
858 
863  public function getGroupPermissionsLookup() : GroupPermissionsLookup {
864  return $this->getService( 'GroupPermissionsLookup' );
865  }
866 
871  public function getHookContainer() : HookContainer {
872  return $this->getService( 'HookContainer' );
873  }
874 
879  public function getHtmlCacheUpdater() : HtmlCacheUpdater {
880  return $this->getService( 'HtmlCacheUpdater' );
881  }
882 
887  public function getHttpRequestFactory() : HttpRequestFactory {
888  return $this->getService( 'HttpRequestFactory' );
889  }
890 
895  public function getInterwikiLookup() : InterwikiLookup {
896  return $this->getService( 'InterwikiLookup' );
897  }
898 
903  public function getJobRunner() : JobRunner {
904  return $this->getService( 'JobRunner' );
905  }
906 
911  public function getJsonCodec() : JsonCodec {
912  return $this->getService( 'JsonCodec' );
913  }
914 
919  public function getLanguageConverterFactory() : LanguageConverterFactory {
920  return $this->getService( 'LanguageConverterFactory' );
921  }
922 
927  public function getLanguageFactory() : LanguageFactory {
928  return $this->getService( 'LanguageFactory' );
929  }
930 
935  public function getLanguageFallback() : LanguageFallback {
936  return $this->getService( 'LanguageFallback' );
937  }
938 
943  public function getLanguageNameUtils() : LanguageNameUtils {
944  return $this->getService( 'LanguageNameUtils' );
945  }
946 
951  public function getLinkBatchFactory() : LinkBatchFactory {
952  return $this->getService( 'LinkBatchFactory' );
953  }
954 
959  public function getLinkCache() : LinkCache {
960  return $this->getService( 'LinkCache' );
961  }
962 
970  public function getLinkRenderer() : LinkRenderer {
971  return $this->getService( 'LinkRenderer' );
972  }
973 
978  public function getLinkRendererFactory() : LinkRendererFactory {
979  return $this->getService( 'LinkRendererFactory' );
980  }
981 
987  return $this->getService( 'LocalisationCache' );
988  }
989 
999  public function getLocalServerObjectCache() : BagOStuff {
1000  return $this->getService( 'LocalServerObjectCache' );
1001  }
1002 
1007  public function getLockManagerGroupFactory() : LockManagerGroupFactory {
1008  return $this->getService( 'LockManagerGroupFactory' );
1009  }
1010 
1016  return $this->getService( 'MagicWordFactory' );
1017  }
1018 
1026  public function getMainConfig() : Config {
1027  return $this->getService( 'MainConfig' );
1028  }
1029 
1038  public function getMainObjectStash() : BagOStuff {
1039  return $this->getService( 'MainObjectStash' );
1040  }
1041 
1051  return $this->getService( 'MainWANObjectCache' );
1052  }
1053 
1059  return $this->getService( 'MediaHandlerFactory' );
1060  }
1061 
1066  public function getMergeHistoryFactory() : MergeHistoryFactory {
1067  return $this->getService( 'MergeHistoryFactory' );
1068  }
1069 
1074  public function getMessageCache() : MessageCache {
1075  return $this->getService( 'MessageCache' );
1076  }
1077 
1082  public function getMessageFormatterFactory() : IMessageFormatterFactory {
1083  return $this->getService( 'MessageFormatterFactory' );
1084  }
1085 
1090  public function getMimeAnalyzer() : MimeAnalyzer {
1091  return $this->getService( 'MimeAnalyzer' );
1092  }
1093 
1098  public function getMovePageFactory() : MovePageFactory {
1099  return $this->getService( 'MovePageFactory' );
1100  }
1101 
1106  public function getNamespaceInfo() : NamespaceInfo {
1107  return $this->getService( 'NamespaceInfo' );
1108  }
1109 
1114  public function getNameTableStoreFactory() : NameTableStoreFactory {
1115  return $this->getService( 'NameTableStoreFactory' );
1116  }
1117 
1125  public function getObjectFactory() : ObjectFactory {
1126  return $this->getService( 'ObjectFactory' );
1127  }
1128 
1134  return $this->getService( 'OldRevisionImporter' );
1135  }
1136 
1141  public function getPageEditStash() : PageEditStash {
1142  return $this->getService( 'PageEditStash' );
1143  }
1144 
1149  public function getPageProps() : PageProps {
1150  return $this->getService( 'PageProps' );
1151  }
1152 
1157  public function getParser() : Parser {
1158  return $this->getService( 'Parser' );
1159  }
1160 
1165  public function getParserCache() : ParserCache {
1166  return $this->getService( 'ParserCache' );
1167  }
1168 
1173  public function getParserCacheFactory() : ParserCacheFactory {
1174  return $this->getService( 'ParserCacheFactory' );
1175  }
1176 
1181  public function getParserFactory() : ParserFactory {
1182  return $this->getService( 'ParserFactory' );
1183  }
1184 
1189  public function getParserOutputAccess() : ParserOutputAccess {
1190  return $this->getService( 'ParserOutputAccess' );
1191  }
1192 
1197  public function getPasswordFactory() : PasswordFactory {
1198  return $this->getService( 'PasswordFactory' );
1199  }
1200 
1205  public function getPasswordReset() : PasswordReset {
1206  return $this->getService( 'PasswordReset' );
1207  }
1208 
1213  public function getPerDbNameStatsdDataFactory() : StatsdDataFactoryInterface {
1214  return $this->getService( 'PerDbNameStatsdDataFactory' );
1215  }
1216 
1221  public function getPermissionManager() : PermissionManager {
1222  return $this->getService( 'PermissionManager' );
1223  }
1224 
1229  public function getPreferencesFactory() : PreferencesFactory {
1230  return $this->getService( 'PreferencesFactory' );
1231  }
1232 
1237  public function getProxyLookup() : ProxyLookup {
1238  return $this->getService( 'ProxyLookup' );
1239  }
1240 
1245  public function getReadOnlyMode() : ReadOnlyMode {
1246  return $this->getService( 'ReadOnlyMode' );
1247  }
1248 
1253  public function getRepoGroup() : RepoGroup {
1254  return $this->getService( 'RepoGroup' );
1255  }
1256 
1261  public function getResourceLoader() : ResourceLoader {
1262  return $this->getService( 'ResourceLoader' );
1263  }
1264 
1269  public function getRevertedTagUpdateManager() : RevertedTagUpdateManager {
1270  return $this->getService( 'RevertedTagUpdateManager' );
1271  }
1272 
1277  public function getRevisionFactory() : RevisionFactory {
1278  return $this->getService( 'RevisionFactory' );
1279  }
1280 
1285  public function getRevisionLookup() : RevisionLookup {
1286  return $this->getService( 'RevisionLookup' );
1287  }
1288 
1293  public function getRevisionRenderer() : RevisionRenderer {
1294  return $this->getService( 'RevisionRenderer' );
1295  }
1296 
1301  public function getRevisionStore() : RevisionStore {
1302  return $this->getService( 'RevisionStore' );
1303  }
1304 
1309  public function getRevisionStoreFactory() : RevisionStoreFactory {
1310  return $this->getService( 'RevisionStoreFactory' );
1311  }
1312 
1317  public function newSearchEngine() : SearchEngine {
1318  // New engine object every time, since they keep state
1319  return $this->getService( 'SearchEngineFactory' )->create();
1320  }
1321 
1327  return $this->getService( 'SearchEngineConfig' );
1328  }
1329 
1335  return $this->getService( 'SearchEngineFactory' );
1336  }
1337 
1342  public function getShellboxClientFactory() : ShellboxClientFactory {
1343  return $this->getService( 'ShellboxClientFactory' );
1344  }
1345 
1350  public function getShellCommandFactory() : CommandFactory {
1351  return $this->getService( 'ShellCommandFactory' );
1352  }
1353 
1358  public function getSiteLookup() : SiteLookup {
1359  return $this->getService( 'SiteLookup' );
1360  }
1361 
1366  public function getSiteStore() : SiteStore {
1367  return $this->getService( 'SiteStore' );
1368  }
1369 
1374  public function getSkinFactory() : SkinFactory {
1375  return $this->getService( 'SkinFactory' );
1376  }
1377 
1382  public function getSlotRoleRegistry() : SlotRoleRegistry {
1383  return $this->getService( 'SlotRoleRegistry' );
1384  }
1385 
1390  public function getSlotRoleStore() : NameTableStore {
1391  return $this->getService( 'SlotRoleStore' );
1392  }
1393 
1398  public function getSpamChecker() : SpamChecker {
1399  return $this->getService( 'SpamChecker' );
1400  }
1401 
1406  public function getSpecialPageFactory() : SpecialPageFactory {
1407  return $this->getService( 'SpecialPageFactory' );
1408  }
1409 
1415  return $this->getService( 'StatsdDataFactory' );
1416  }
1417 
1422  public function getTalkPageNotificationManager() : TalkPageNotificationManager {
1423  return $this->getService( 'TalkPageNotificationManager' );
1424  }
1425 
1430  public function getTempFSFileFactory() : TempFSFileFactory {
1431  return $this->getService( 'TempFSFileFactory' );
1432  }
1433 
1438  public function getTidy() : TidyDriverBase {
1439  return $this->getService( 'Tidy' );
1440  }
1441 
1446  public function getTitleFactory() : TitleFactory {
1447  return $this->getService( 'TitleFactory' );
1448  }
1449 
1454  public function getTitleFormatter() : TitleFormatter {
1455  return $this->getService( 'TitleFormatter' );
1456  }
1457 
1462  public function getTitleParser() : TitleParser {
1463  return $this->getService( 'TitleParser' );
1464  }
1465 
1470  public function getUnblockUserFactory() : UnblockUserFactory {
1471  return $this->getService( 'UnblockUserFactory' );
1472  }
1473 
1479  return $this->getService( 'UploadRevisionImporter' );
1480  }
1481 
1486  public function getUserCache() : UserCache {
1487  return $this->getService( 'UserCache' );
1488  }
1489 
1494  public function getUserEditTracker() : UserEditTracker {
1495  return $this->getService( 'UserEditTracker' );
1496  }
1497 
1502  public function getUserFactory() : UserFactory {
1503  return $this->getService( 'UserFactory' );
1504  }
1505 
1510  public function getUserGroupManager() : UserGroupManager {
1511  return $this->getService( 'UserGroupManager' );
1512  }
1513 
1518  public function getUserGroupManagerFactory() : UserGroupManagerFactory {
1519  return $this->getService( 'UserGroupManagerFactory' );
1520  }
1521 
1526  public function getUserIdentityLookup() : UserIdentityLookup {
1527  return $this->getService( 'UserIdentityLookup' );
1528  }
1529 
1535  return $this->getService( 'UserNamePrefixSearch' );
1536  }
1537 
1542  public function getUserNameUtils() : UserNameUtils {
1543  return $this->getService( 'UserNameUtils' );
1544  }
1545 
1550  public function getUserOptionsLookup() : UserOptionsLookup {
1551  return $this->getService( 'UserOptionsLookup' );
1552  }
1553 
1558  public function getUserOptionsManager() : UserOptionsManager {
1559  return $this->getService( 'UserOptionsManager' );
1560  }
1561 
1567  return $this->getService( 'VirtualRESTServiceClient' );
1568  }
1569 
1575  return $this->getService( 'WatchedItemQueryService' );
1576  }
1577 
1583  return $this->getService( 'WatchedItemStore' );
1584  }
1585 
1590  public function getWatchlistNotificationManager() : WatchlistNotificationManager {
1591  return $this->getService( 'WatchlistNotificationManager' );
1592  }
1593 
1598  public function getWikiPageFactory() : WikiPageFactory {
1599  return $this->getService( 'WikiPageFactory' );
1600  }
1601 
1607  return $this->getService( 'OldRevisionImporter' );
1608  }
1609 
1615  return $this->getService( 'WikiRevisionOldRevisionImporterNoUpdates' );
1616  }
1617 
1623  return $this->getService( 'UploadRevisionImporter' );
1624  }
1625 
1626 }
EventRelayerGroup
Factory class for spawning EventRelayer objects using configuration.
Definition: EventRelayerGroup.php:26
MediaWiki\MediaWikiServices\getMessageCache
getMessageCache()
Definition: MediaWikiServices.php:1074
MediaWiki\MediaWikiServices\getBlockErrorFormatter
getBlockErrorFormatter()
Definition: MediaWikiServices.php:614
ObjectCache\clear
static clear()
Clear all the cached instances.
Definition: ObjectCache.php:281
ObjectCache
Functions to get cache objects.
Definition: ObjectCache.php:64
LinkCache
Cache for article titles (prefixed DB keys) and ids linked from one source.
Definition: LinkCache.php:35
MediaWiki\MediaWikiServices\getShellCommandFactory
getShellCommandFactory()
Definition: MediaWikiServices.php:1350
MediaWiki\Block\BlockPermissionCheckerFactory
Factory class for BlockPermissionChecker.
Definition: BlockPermissionCheckerFactory.php:34
MediaWiki\MediaWikiServices\getInterwikiLookup
getInterwikiLookup()
Definition: MediaWikiServices.php:895
MediaWiki\Block\BlockUserFactory
Definition: BlockUserFactory.php:30
MediaWiki\MediaWikiServices\getSpamChecker
getSpamChecker()
Definition: MediaWikiServices.php:1398
MediaWiki\MediaWikiServices\getResourceLoader
getResourceLoader()
Definition: MediaWikiServices.php:1261
MediaWiki\MediaWikiServices\getSearchEngineConfig
getSearchEngineConfig()
Definition: MediaWikiServices.php:1326
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:1358
MediaWiki\MediaWikiServices\getParserFactory
getParserFactory()
Definition: MediaWikiServices.php:1181
MediaWiki\MediaWikiServices\getBlockManager
getBlockManager()
Definition: MediaWikiServices.php:622
MediaWiki\MediaWikiServices\getJobRunner
getJobRunner()
Definition: MediaWikiServices.php:903
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:638
MediaWiki\MediaWikiServices\getDBLoadBalancer
getDBLoadBalancer()
Definition: MediaWikiServices.php:791
MediaWiki\Permissions\GroupPermissionsLookup
Definition: GroupPermissionsLookup.php:30
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition: MediaWikiServices.php:173
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:89
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:743
MediaWiki\MediaWikiServices\getChangeTagDefStore
getChangeTagDefStore()
Definition: MediaWikiServices.php:679
MediaWiki\MediaWikiServices\getLanguageConverterFactory
getLanguageConverterFactory()
Definition: MediaWikiServices.php:919
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:630
MediaWiki\MediaWikiServices\getRevisionLookup
getRevisionLookup()
Definition: MediaWikiServices.php:1285
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:574
MediaWiki\MediaWikiServices\getBootstrapConfig
getBootstrapConfig()
Returns the Config object containing the bootstrap configuration.
Definition: MediaWikiServices.php:671
MediaWiki\FileBackend\LockManager\LockManagerGroupFactory
Service to construct LockManagerGroups.
Definition: LockManagerGroupFactory.php:11
MediaWiki\MediaWikiServices\getCommentStore
getCommentStore()
Definition: MediaWikiServices.php:687
MediaWiki\MediaWikiServices\getGlobalIdGenerator
getGlobalIdGenerator()
Definition: MediaWikiServices.php:855
MediaWiki\MediaWikiServices\getSlotRoleStore
getSlotRoleStore()
Definition: MediaWikiServices.php:1390
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:823
MediaWiki\MediaWikiServices\getUserNamePrefixSearch
getUserNamePrefixSearch()
Definition: MediaWikiServices.php:1534
MediaWiki\MediaWikiServices\getUserOptionsManager
getUserOptionsManager()
Definition: MediaWikiServices.php:1558
BagOStuff
Class representing a cache/ephemeral data store.
Definition: BagOStuff.php:86
MediaWiki\Linker\LinkRendererFactory
Factory to create LinkRender objects.
Definition: LinkRendererFactory.php:34
SearchEngineFactory
Factory class for SearchEngine.
Definition: SearchEngineFactory.php:13
Revision\RevisionFactory
Service for constructing revision objects.
Definition: RevisionFactory.php:38
MediaWiki\MediaWikiServices\getActorMigration
getActorMigration()
Definition: MediaWikiServices.php:550
MediaWiki\MediaWikiServices\getJsonCodec
getJsonCodec()
Definition: MediaWikiServices.php:911
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:654
MediaWiki\MediaWikiServices\getWikiPageFactory
getWikiPageFactory()
Definition: MediaWikiServices.php:1598
MediaWiki\Block\DatabaseBlockStore
Definition: DatabaseBlockStore.php:44
Parser\ParserCacheFactory
Definition: ParserCacheFactory.php:38
MediaWiki\MediaWikiServices\getPermissionManager
getPermissionManager()
Definition: MediaWikiServices.php:1221
MediaWiki\MediaWikiServices\getLanguageFallback
getLanguageFallback()
Definition: MediaWikiServices.php:935
MediaWiki\MediaWikiServices\getGenderCache
getGenderCache()
Definition: MediaWikiServices.php:847
MediaWiki\User\ActorStoreFactory
Definition: ActorStoreFactory.php:36
MediaWiki\MediaWikiServices\getEventRelayerGroup
getEventRelayerGroup()
Definition: MediaWikiServices.php:815
MediaWiki\MediaWikiServices\getLockManagerGroupFactory
getLockManagerGroupFactory()
Definition: MediaWikiServices.php:1007
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:1133
MediaWiki\MediaWikiServices\getPasswordReset
getPasswordReset()
Definition: MediaWikiServices.php:1205
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:1478
MediaWiki\MediaWikiServices\getProxyLookup
getProxyLookup()
Definition: MediaWikiServices.php:1237
MediaWiki\MediaWikiServices\getSkinFactory
getSkinFactory()
Definition: MediaWikiServices.php:1374
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:519
MediaWiki\MediaWikiServices\getUserCache
getUserCache()
Definition: MediaWikiServices.php:1486
MediaWiki\MediaWikiServices\getInstance
static getInstance()
Returns the global default instance of the top level service locator.
Definition: MediaWikiServices.php:234
MediaWiki\MediaWikiServices\getLocalisationCache
getLocalisationCache()
Definition: MediaWikiServices.php:986
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:1406
MediaWiki\MediaWikiServices\getAuthManager
getAuthManager()
Definition: MediaWikiServices.php:582
MediaWiki\MediaWikiServices\getMagicWordFactory
getMagicWordFactory()
Definition: MediaWikiServices.php:1015
MediaWiki\MediaWikiServices\getPerDbNameStatsdDataFactory
getPerDbNameStatsdDataFactory()
Definition: MediaWikiServices.php:1213
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:484
MediaWiki\MediaWikiServices\getCryptHKDF
getCryptHKDF()
Definition: MediaWikiServices.php:767
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:328
MediaWiki\MediaWikiServices\getTempFSFileFactory
getTempFSFileFactory()
Definition: MediaWikiServices.php:1430
MediaWiki\MediaWikiServices\getWatchedItemStore
getWatchedItemStore()
Definition: MediaWikiServices.php:1582
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:719
MediaWiki\User\WatchlistNotificationManager
WatchlistNotificationManager service.
Definition: WatchlistNotificationManager.php:40
MediaWiki\MediaWikiServices\getMediaHandlerFactory
getMediaHandlerFactory()
Definition: MediaWikiServices.php:1058
Config\get
get( $name)
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
MediaWiki\MediaWikiServices\getRevertedTagUpdateManager
getRevertedTagUpdateManager()
Definition: MediaWikiServices.php:1269
CryptHKDF
Definition: CryptHKDF.php:33
MediaWiki\MediaWikiServices\getWatchedItemQueryService
getWatchedItemQueryService()
Definition: MediaWikiServices.php:1574
MediaWiki\MediaWikiServices\getUserEditTracker
getUserEditTracker()
Definition: MediaWikiServices.php:1494
MediaWiki\Cache\LinkBatchFactory
Definition: LinkBatchFactory.php:38
MediaWiki\MediaWikiServices\getUserFactory
getUserFactory()
Definition: MediaWikiServices.php:1502
MediaWiki\MediaWikiServices\getMergeHistoryFactory
getMergeHistoryFactory()
Definition: MediaWikiServices.php:1066
MediaWiki\MediaWikiServices\getTitleParser
getTitleParser()
Definition: MediaWikiServices.php:1462
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:839
MediaWiki
A helper class for throttling authentication attempts.
MediaWiki\MediaWikiServices\getParserCacheFactory
getParserCacheFactory()
Definition: MediaWikiServices.php:1173
MediaWiki\Block\UnblockUserFactory
Definition: UnblockUserFactory.php:30
MediaWiki\MediaWikiServices\getMessageFormatterFactory
getMessageFormatterFactory()
Definition: MediaWikiServices.php:1082
Page\WikiPageFactory
Definition: WikiPageFactory.php:20
MediaWiki\MediaWikiServices\newSearchEngine
newSearchEngine()
Definition: MediaWikiServices.php:1317
MediaWiki\MediaWikiServices\getMainConfig
getMainConfig()
Returns the Config object that provides configuration for MediaWiki core.
Definition: MediaWikiServices.php:1026
MediaWiki\MediaWikiServices\getObjectFactory
getObjectFactory()
ObjectFactory is intended for instantiating "handlers" from declarative definitions,...
Definition: MediaWikiServices.php:1125
MediaWiki\MediaWikiServices\getSearchEngineFactory
getSearchEngineFactory()
Definition: MediaWikiServices.php:1334
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:429
MediaWiki\MediaWikiServices\getRevisionStoreFactory
getRevisionStoreFactory()
Definition: MediaWikiServices.php:1309
MediaWiki\MediaWikiServices\getUserIdentityLookup
getUserIdentityLookup()
Definition: MediaWikiServices.php:1526
MediaWiki\MediaWikiServices\getDBLoadBalancerFactory
getDBLoadBalancerFactory()
Definition: MediaWikiServices.php:799
MediaWiki\MediaWikiServices\newInstance
static newInstance(Config $bootstrapConfig, $loadWiring='')
Creates a new MediaWikiServices instance and initializes it according to the given $bootstrapConfig.
Definition: MediaWikiServices.php:402
MediaWiki\MediaWikiServices\getTitleFormatter
getTitleFormatter()
Definition: MediaWikiServices.php:1454
MediaWiki\MediaWikiServices\getLinkBatchFactory
getLinkBatchFactory()
Definition: MediaWikiServices.php:951
MediaWiki\Tidy\TidyDriverBase
Base class for HTML cleanup utilities.
Definition: TidyDriverBase.php:8
MediaWiki\MediaWikiServices\getHttpRequestFactory
getHttpRequestFactory()
Definition: MediaWikiServices.php:887
MediaWiki\MediaWikiServices\getActorStore
getActorStore()
Definition: MediaWikiServices.php:566
MediaWiki\MediaWikiServices\getCriticalSectionProvider
getCriticalSectionProvider()
Definition: MediaWikiServices.php:759
MediaWiki\MediaWikiServices\getRevisionFactory
getRevisionFactory()
Definition: MediaWikiServices.php:1277
MediaWiki\MediaWikiServices\getParserCache
getParserCache()
Definition: MediaWikiServices.php:1165
MediaWiki\MediaWikiServices\salvage
salvage(self $other)
@noinspection PhpDocSignatureInspection
Definition: MediaWikiServices.php:366
MediaWiki\FileBackend\FSFile\TempFSFileFactory
Definition: TempFSFileFactory.php:10
MediaWiki\MediaWikiServices\getPreferencesFactory
getPreferencesFactory()
Definition: MediaWikiServices.php:1229
MediaWiki\MediaWikiServices\__construct
__construct(Config $config)
Definition: MediaWikiServices.php:535
MediaWiki\MediaWikiServices\getContentModelChangeFactory
getContentModelChangeFactory()
Definition: MediaWikiServices.php:735
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:33
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:1197
ParserFactory
Definition: ParserFactory.php:36
MediaWiki\MediaWikiServices\getService
getService( $name)
Definition: MediaWikiServices.php:256
MediaWiki\MediaWikiServices\getPageEditStash
getPageEditStash()
Definition: MediaWikiServices.php:1141
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporterNoUpdates
getWikiRevisionOldRevisionImporterNoUpdates()
Definition: MediaWikiServices.php:1614
MediaWiki\MediaWikiServices\getHtmlCacheUpdater
getHtmlCacheUpdater()
Definition: MediaWikiServices.php:879
MediaWiki\Content\IContentHandlerFactory
Definition: IContentHandlerFactory.php:10
MediaWiki\MediaWikiServices\getVirtualRESTServiceClient
getVirtualRESTServiceClient()
Definition: MediaWikiServices.php:1566
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:590
MediaWiki\MediaWikiServices\getConfigFactory
getConfigFactory()
Definition: MediaWikiServices.php:695
MediaWiki\Shell\CommandFactory
Factory facilitating dependency injection for Command.
Definition: CommandFactory.php:35
MediaWiki\MediaWikiServices\getWikiRevisionUploadImporter
getWikiRevisionUploadImporter()
Definition: MediaWikiServices.php:1622
MediaWiki\Preferences\PreferencesFactory
A PreferencesFactory is a MediaWiki service that provides the definitions of preferences for a given ...
Definition: PreferencesFactory.php:54
MediaWiki\MediaWikiServices\getTidy
getTidy()
Definition: MediaWikiServices.php:1438
WANObjectCache
Multi-datacenter aware caching interface.
Definition: WANObjectCache.php:125
MediaWiki\MediaWikiServices\getUserNameUtils
getUserNameUtils()
Definition: MediaWikiServices.php:1542
MediaWiki\MediaWikiServices\getUserGroupManagerFactory
getUserGroupManagerFactory()
Definition: MediaWikiServices.php:1518
HtmlCacheUpdater
Class to invalidate the CDN and HTMLFileCache entries associated with URLs/titles.
Definition: HtmlCacheUpdater.php:30
MediaWiki\MediaWikiServices\getRevisionRenderer
getRevisionRenderer()
Definition: MediaWikiServices.php:1293
MediaWiki\MediaWikiServices\getUserOptionsLookup
getUserOptionsLookup()
Definition: MediaWikiServices.php:1550
MediaWiki\MediaWikiServices\getContributionsLookup
getContributionsLookup()
Definition: MediaWikiServices.php:751
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:214
MediaWiki\Storage\NameTableStore
Definition: NameTableStore.php:36
MediaWiki\MediaWikiServices\getExternalStoreFactory
getExternalStoreFactory()
Definition: MediaWikiServices.php:831
Parser
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...
Definition: Parser.php:87
Revision\RevisionStoreFactory
Factory service for RevisionStore instances.
Definition: RevisionStoreFactory.php:53
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:783
Page\MovePageFactory
Definition: MovePageFactory.php:30
SearchEngine
Contain a class for special pages.
Definition: SearchEngine.php:37
MediaWiki\MediaWikiServices\getTitleFactory
getTitleFactory()
Definition: MediaWikiServices.php:1446
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:1050
MediaWiki\MediaWikiServices\getMimeAnalyzer
getMimeAnalyzer()
Definition: MediaWikiServices.php:1090
IBufferingStatsdDataFactory
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
Definition: IBufferingStatsdDataFactory.php:13
MediaWiki\MediaWikiServices\getSiteStore
getSiteStore()
Definition: MediaWikiServices.php:1366
MediaWiki\MediaWikiServices\getBlobStore
getBlobStore()
Definition: MediaWikiServices.php:598
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:1470
MediaWiki\MediaWikiServices\getLocalServerObjectCache
getLocalServerObjectCache()
Returns the main server-local cache, yeilding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:999
MediaWiki\MediaWikiServices\getMovePageFactory
getMovePageFactory()
Definition: MediaWikiServices.php:1098
ResourceLoader
ResourceLoader is a loading system for JavaScript and CSS resources.
Definition: ResourceLoader.php:58
OldRevisionImporter
Definition: OldRevisionImporter.php:6
MediaWiki\MediaWikiServices\getBlobStoreFactory
getBlobStoreFactory()
Definition: MediaWikiServices.php:606
MediaWiki\MediaWikiServices\getConfiguredReadOnlyMode
getConfiguredReadOnlyMode()
Definition: MediaWikiServices.php:711
MediaWiki\MediaWikiServices\getLanguageFactory
getLanguageFactory()
Definition: MediaWikiServices.php:927
MediaWiki\MediaWikiServices\getRevisionStore
getRevisionStore()
Definition: MediaWikiServices.php:1301
MediaWiki\MediaWikiServices\getParserOutputAccess
getParserOutputAccess()
Definition: MediaWikiServices.php:1189
MediaWiki\User\UserEditTracker
Track info about user edit counts and timings.
Definition: UserEditTracker.php:19
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporter
getWikiRevisionOldRevisionImporter()
Definition: MediaWikiServices.php:1606
PageProps
Gives access to properties of a page.
Definition: PageProps.php:32
MediaWiki\MediaWikiServices\allowGlobalInstance
static allowGlobalInstance()
Allows a global service container instance to exist.
Definition: MediaWikiServices.php:197
MediaWiki\MediaWikiServices\getGroupPermissionsLookup
getGroupPermissionsLookup()
Definition: MediaWikiServices.php:863
MediaWiki\User\UserNameUtils
UserNameUtils service.
Definition: UserNameUtils.php:42
MediaWiki\MediaWikiServices\getParser
getParser()
Definition: MediaWikiServices.php:1157
MediaWiki\MediaWikiServices\getLanguageNameUtils
getLanguageNameUtils()
Definition: MediaWikiServices.php:943
MediaWiki\MediaWikiServices\getDatabaseBlockStore
getDatabaseBlockStore()
Definition: MediaWikiServices.php:775
MediaWiki\MediaWikiServices\getNamespaceInfo
getNamespaceInfo()
Definition: MediaWikiServices.php:1106
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:453
MediaWiki\MediaWikiServices\getSlotRoleRegistry
getSlotRoleRegistry()
Definition: MediaWikiServices.php:1382
TitleFormatter
A title formatter service for MediaWiki.
Definition: TitleFormatter.php:34
MediaWiki\MediaWikiServices\getActorNormalization
getActorNormalization()
Definition: MediaWikiServices.php:558
Wikimedia\Rdbms\LBFactory
An interface for generating database load balancers.
Definition: LBFactory.php:41
MediaWiki\MediaWikiServices\getContentLanguage
getContentLanguage()
Definition: MediaWikiServices.php:727
TitleFactory
Creates Title objects.
Definition: TitleFactory.php:34
MediaWiki\MediaWikiServices\getConfigRepository
getConfigRepository()
Definition: MediaWikiServices.php:703
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:1149
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:807
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:576
MediaWiki\MediaWikiServices\getLinkRendererFactory
getLinkRendererFactory()
Definition: MediaWikiServices.php:978
MediaWiki\MediaWikiServices\getBlockUserFactory
getBlockUserFactory()
Definition: MediaWikiServices.php:646
MediaWiki\MediaWikiServices\getUserGroupManager
getUserGroupManager()
Definition: MediaWikiServices.php:1510
MediaWiki\Json\JsonCodec
Definition: JsonCodec.php:36
JobRunner
Job queue runner utility methods.
Definition: JobRunner.php:41
MediaWiki\MediaWikiServices\getTalkPageNotificationManager
getTalkPageNotificationManager()
Definition: MediaWikiServices.php:1422
MediaWiki\MediaWikiServices\getLinkRenderer
getLinkRenderer()
LinkRenderer instance that can be used if no custom options are needed.
Definition: MediaWikiServices.php:970
MediaWiki\MediaWikiServices\getHookContainer
getHookContainer()
Definition: MediaWikiServices.php:871
MediaWiki\MediaWikiServices\getWatchlistNotificationManager
getWatchlistNotificationManager()
Definition: MediaWikiServices.php:1590
MediaWiki\MediaWikiServices\getMainObjectStash
getMainObjectStash()
Returns the main object stash, yeilding EmptyBagOStuff if there is none.
Definition: MediaWikiServices.php:1038
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:959
MediaWiki\MediaWikiServices\getShellboxClientFactory
getShellboxClientFactory()
Definition: MediaWikiServices.php:1342
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:1245
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:43
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:278
MediaWiki\User\ActorStore
Definition: ActorStore.php:43
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:1414
MediaWiki\User\ActorNormalization
Service for dealing with the actor table.
Definition: ActorNormalization.php:32
MediaWiki\MediaWikiServices\getNameTableStoreFactory
getNameTableStoreFactory()
Definition: MediaWikiServices.php:1114
MediaWiki\MediaWikiServices\getRepoGroup
getRepoGroup()
Definition: MediaWikiServices.php:1253