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;
84 use MessageCache;
85 use MimeAnalyzer;
86 use MWException;
87 use NamespaceInfo;
88 use ObjectCache;
90 use PageProps;
91 use Parser;
92 use ParserCache;
93 use ParserFactory;
94 use PasswordFactory;
95 use PasswordReset;
96 use ProxyLookup;
97 use ReadOnlyMode;
98 use RepoGroup;
99 use ResourceLoader;
100 use SearchEngine;
103 use SiteLookup;
104 use SiteStore;
105 use SkinFactory;
106 use TitleFactory;
107 use TitleFormatter;
108 use TitleParser;
111 use WANObjectCache;
115 use Wikimedia\NonSerializable\NonSerializableTrait;
116 use Wikimedia\ObjectFactory;
119 use Wikimedia\Services\NoSuchServiceException;
120 use Wikimedia\Services\SalvageableService;
121 use Wikimedia\Services\ServiceContainer;
123 
160 class MediaWikiServices extends ServiceContainer {
161  use NonSerializableTrait;
162 
166  private static $instance = null;
167 
174  public static function hasInstance() {
175  return self::$instance !== null;
176  }
177 
192  public static function getInstance() : self {
193  if ( self::$instance === null ) {
194  // NOTE: constructing GlobalVarConfig here is not particularly pretty,
195  // but some information from the global scope has to be injected here,
196  // even if it's just a file name or database credentials to load
197  // configuration from.
198  $bootstrapConfig = new GlobalVarConfig();
199  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
200 
201  // Provides a traditional hook point to allow extensions to configure services.
202  // NOTE: Ideally this would be in newInstance() but it causes an infinite run loop
203  $runner = new HookRunner( self::$instance->getHookContainer() );
204  $runner->onMediaWikiServices( self::$instance );
205  }
206  return self::$instance;
207  }
208 
222  public static function forceGlobalInstance( MediaWikiServices $services ) {
223  if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
224  throw new MWException( __METHOD__ . ' must not be used outside unit tests.' );
225  }
226 
227  $old = self::getInstance();
228  self::$instance = $services;
229 
230  return $old;
231  }
232 
272  public static function resetGlobalInstance( Config $bootstrapConfig = null, $quick = '' ) {
273  if ( self::$instance === null ) {
274  // no global instance yet, nothing to reset
275  return;
276  }
277 
278  self::failIfResetNotAllowed( __METHOD__ );
279 
280  if ( $bootstrapConfig === null ) {
281  $bootstrapConfig = self::$instance->getBootstrapConfig();
282  }
283 
284  $oldInstance = self::$instance;
285 
286  self::$instance = self::newInstance( $bootstrapConfig, 'load' );
287 
288  // Provides a traditional hook point to allow extensions to configure services.
289  $runner = new HookRunner( self::$instance->getHookContainer() );
290  $runner->onMediaWikiServices( self::$instance );
291 
292  self::$instance->importWiring( $oldInstance, [ 'BootstrapConfig' ] );
293 
294  if ( $quick === 'quick' ) {
295  self::$instance->salvage( $oldInstance );
296  } else {
297  $oldInstance->destroy();
298  }
299  }
300 
310  private function salvage( self $other ) {
311  foreach ( $this->getServiceNames() as $name ) {
312  // The service could be new in the new instance and not registered in the
313  // other instance (e.g. an extension that was loaded after the instantiation of
314  // the other instance. Skip this service in this case. See T143974
315  try {
316  $oldService = $other->peekService( $name );
317  } catch ( NoSuchServiceException $e ) {
318  continue;
319  }
320 
321  if ( $oldService instanceof SalvageableService ) {
323  $newService = $this->getService( $name );
324  $newService->salvage( $oldService );
325  }
326  }
327 
328  $other->destroy();
329  }
330 
346  private static function newInstance( Config $bootstrapConfig, $loadWiring = '' ) {
347  $instance = new self( $bootstrapConfig );
348 
349  // Load the default wiring from the specified files.
350  if ( $loadWiring === 'load' ) {
351  $wiringFiles = $bootstrapConfig->get( 'ServiceWiringFiles' );
352  $instance->loadWiringFiles( $wiringFiles );
353  }
354 
355  return $instance;
356  }
357 
373  public static function disableStorageBackend() {
374  // TODO: also disable some Caches, JobQueues, etc
375  $destroy = [ 'DBLoadBalancer', 'DBLoadBalancerFactory' ];
376  $services = self::getInstance();
377 
378  foreach ( $destroy as $name ) {
379  $services->disableService( $name );
380  }
381 
383  }
384 
397  public static function resetChildProcessServices() {
398  // NOTE: for now, just reset everything. Since we don't know the interdependencies
399  // between services, we can't do this more selectively at this time.
400  self::resetGlobalInstance();
401 
402  // Child, reseed because there is no bug in PHP:
403  // https://bugs.php.net/bug.php?id=42465
404  mt_srand( getmypid() );
405  }
406 
428  public function resetServiceForTesting( $name, $destroy = true ) {
429  if ( !defined( 'MW_PHPUNIT_TEST' ) && !defined( 'MW_PARSER_TEST' ) ) {
430  throw new MWException( 'resetServiceForTesting() must not be used outside unit tests.' );
431  }
432 
433  $this->resetService( $name, $destroy );
434  }
435 
463  public static function failIfResetNotAllowed( $method ) {
464  if ( !defined( 'MW_PHPUNIT_TEST' )
465  && !defined( 'MW_PARSER_TEST' )
466  && !defined( 'MEDIAWIKI_INSTALL' )
467  && !defined( 'RUN_MAINTENANCE_IF_MAIN' )
468  && defined( 'MW_SERVICE_BOOTSTRAP_COMPLETE' )
469  ) {
470  throw new MWException( $method . ' may only be called during bootstrapping and unit tests!' );
471  }
472  }
473 
479  public function __construct( Config $config ) {
480  parent::__construct();
481 
482  // Register the given Config object as the bootstrap config service.
483  $this->defineService( 'BootstrapConfig', function () use ( $config ) {
484  return $config;
485  } );
486  }
487 
488  // CONVENIENCE GETTERS ////////////////////////////////////////////////////
489 
494  public function getActorMigration() : ActorMigration {
495  return $this->getService( 'ActorMigration' );
496  }
497 
502  public function getAuthManager() : AuthManager {
503  return $this->getService( 'AuthManager' );
504  }
505 
510  public function getBadFileLookup() : BadFileLookup {
511  return $this->getService( 'BadFileLookup' );
512  }
513 
518  public function getBlobStore() : BlobStore {
519  return $this->getService( 'BlobStore' );
520  }
521 
526  public function getBlobStoreFactory() : BlobStoreFactory {
527  return $this->getService( 'BlobStoreFactory' );
528  }
529 
534  public function getBlockErrorFormatter() : BlockErrorFormatter {
535  return $this->getService( 'BlockErrorFormatter' );
536  }
537 
542  public function getBlockManager() : BlockManager {
543  return $this->getService( 'BlockManager' );
544  }
545 
550  public function getBlockPermissionCheckerFactory() : BlockPermissionCheckerFactory {
551  return $this->getService( 'BlockPermissionCheckerFactory' );
552  }
553 
558  public function getBlockRestrictionStore() : BlockRestrictionStore {
559  return $this->getService( 'BlockRestrictionStore' );
560  }
561 
566  public function getBlockUserFactory() : BlockUserFactory {
567  return $this->getService( 'BlockUserFactory' );
568  }
569 
583  public function getBootstrapConfig() : Config {
584  return $this->getService( 'BootstrapConfig' );
585  }
586 
591  public function getChangeTagDefStore() : NameTableStore {
592  return $this->getService( 'ChangeTagDefStore' );
593  }
594 
599  public function getCommentStore() : CommentStore {
600  return $this->getService( 'CommentStore' );
601  }
602 
607  public function getConfigFactory() : ConfigFactory {
608  return $this->getService( 'ConfigFactory' );
609  }
610 
615  public function getConfigRepository() : ConfigRepository {
616  return $this->getService( 'ConfigRepository' );
617  }
618 
624  return $this->getService( 'ConfiguredReadOnlyMode' );
625  }
626 
631  public function getContentHandlerFactory() : IContentHandlerFactory {
632  return $this->getService( 'ContentHandlerFactory' );
633  }
634 
639  public function getContentLanguage() : Language {
640  return $this->getService( 'ContentLanguage' );
641  }
642 
647  public function getContentModelChangeFactory() : ContentModelChangeFactory {
648  return $this->getService( 'ContentModelChangeFactory' );
649  }
650 
655  public function getContentModelStore() : NameTableStore {
656  return $this->getService( 'ContentModelStore' );
657  }
658 
663  public function getContributionsLookup() : ContributionsLookup {
664  return $this->getService( 'ContributionsLookup' );
665  }
666 
671  public function getCryptHKDF() : CryptHKDF {
672  return $this->getService( 'CryptHKDF' );
673  }
674 
679  public function getDatabaseBlockStore() : DatabaseBlockStore {
680  return $this->getService( 'DatabaseBlockStore' );
681  }
682 
688  return $this->getService( 'DateFormatterFactory' );
689  }
690 
695  public function getDBLoadBalancer() : ILoadBalancer {
696  return $this->getService( 'DBLoadBalancer' );
697  }
698 
703  public function getDBLoadBalancerFactory() : LBFactory {
704  return $this->getService( 'DBLoadBalancerFactory' );
705  }
706 
711  public function getEmailer() : IEmailer {
712  return $this->getService( 'Emailer' );
713  }
714 
720  return $this->getService( 'EventRelayerGroup' );
721  }
722 
728  return $this->getService( 'ExternalStoreAccess' );
729  }
730 
736  return $this->getService( 'ExternalStoreFactory' );
737  }
738 
743  public function getFileBackendGroup() : FileBackendGroup {
744  return $this->getService( 'FileBackendGroup' );
745  }
746 
751  public function getGenderCache() : GenderCache {
752  return $this->getService( 'GenderCache' );
753  }
754 
759  public function getGlobalIdGenerator() : GlobalIdGenerator {
760  return $this->getService( 'GlobalIdGenerator' );
761  }
762 
767  public function getHookContainer() : HookContainer {
768  return $this->getService( 'HookContainer' );
769  }
770 
775  public function getHtmlCacheUpdater() : HtmlCacheUpdater {
776  return $this->getService( 'HtmlCacheUpdater' );
777  }
778 
783  public function getHttpRequestFactory() : HttpRequestFactory {
784  return $this->getService( 'HttpRequestFactory' );
785  }
786 
791  public function getInterwikiLookup() : InterwikiLookup {
792  return $this->getService( 'InterwikiLookup' );
793  }
794 
799  public function getJobRunner() : JobRunner {
800  return $this->getService( 'JobRunner' );
801  }
802 
807  public function getLanguageConverterFactory() : LanguageConverterFactory {
808  return $this->getService( 'LanguageConverterFactory' );
809  }
810 
815  public function getLanguageFactory() : LanguageFactory {
816  return $this->getService( 'LanguageFactory' );
817  }
818 
823  public function getLanguageFallback() : LanguageFallback {
824  return $this->getService( 'LanguageFallback' );
825  }
826 
831  public function getLanguageNameUtils() {
832  return $this->getService( 'LanguageNameUtils' );
833  }
834 
839  public function getLinkBatchFactory() : LinkBatchFactory {
840  return $this->getService( 'LinkBatchFactory' );
841  }
842 
847  public function getLinkCache() : LinkCache {
848  return $this->getService( 'LinkCache' );
849  }
850 
858  public function getLinkRenderer() : LinkRenderer {
859  return $this->getService( 'LinkRenderer' );
860  }
861 
866  public function getLinkRendererFactory() : LinkRendererFactory {
867  return $this->getService( 'LinkRendererFactory' );
868  }
869 
875  return $this->getService( 'LocalisationCache' );
876  }
877 
882  public function getLocalServerObjectCache() : BagOStuff {
883  return $this->getService( 'LocalServerObjectCache' );
884  }
885 
890  public function getLockManagerGroupFactory() : LockManagerGroupFactory {
891  return $this->getService( 'LockManagerGroupFactory' );
892  }
893 
898  public function getMagicWordFactory() : MagicWordFactory {
899  return $this->getService( 'MagicWordFactory' );
900  }
901 
909  public function getMainConfig() : Config {
910  return $this->getService( 'MainConfig' );
911  }
912 
917  public function getMainObjectStash() : BagOStuff {
918  return $this->getService( 'MainObjectStash' );
919  }
920 
925  public function getMainWANObjectCache() : WANObjectCache {
926  return $this->getService( 'MainWANObjectCache' );
927  }
928 
934  return $this->getService( 'MediaHandlerFactory' );
935  }
936 
941  public function getMergeHistoryFactory() : MergeHistoryFactory {
942  return $this->getService( 'MergeHistoryFactory' );
943  }
944 
949  public function getMessageCache() : MessageCache {
950  return $this->getService( 'MessageCache' );
951  }
952 
957  public function getMessageFormatterFactory() : IMessageFormatterFactory {
958  return $this->getService( 'MessageFormatterFactory' );
959  }
960 
965  public function getMimeAnalyzer() : MimeAnalyzer {
966  return $this->getService( 'MimeAnalyzer' );
967  }
968 
973  public function getMovePageFactory() : MovePageFactory {
974  return $this->getService( 'MovePageFactory' );
975  }
976 
981  public function getNamespaceInfo() : NamespaceInfo {
982  return $this->getService( 'NamespaceInfo' );
983  }
984 
989  public function getNameTableStoreFactory() : NameTableStoreFactory {
990  return $this->getService( 'NameTableStoreFactory' );
991  }
992 
1000  public function getObjectFactory() : ObjectFactory {
1001  return $this->getService( 'ObjectFactory' );
1002  }
1003 
1009  return $this->getService( 'OldRevisionImporter' );
1010  }
1011 
1016  public function getPageEditStash() : PageEditStash {
1017  return $this->getService( 'PageEditStash' );
1018  }
1019 
1024  public function getPageProps() : PageProps {
1025  return $this->getService( 'PageProps' );
1026  }
1027 
1032  public function getParser() : Parser {
1033  return $this->getService( 'Parser' );
1034  }
1035 
1040  public function getParserCache() : ParserCache {
1041  return $this->getService( 'ParserCache' );
1042  }
1043 
1048  public function getParserCacheFactory() : ParserCacheFactory {
1049  return $this->getService( 'ParserCacheFactory' );
1050  }
1051 
1056  public function getParserFactory() : ParserFactory {
1057  return $this->getService( 'ParserFactory' );
1058  }
1059 
1064  public function getPasswordFactory() : PasswordFactory {
1065  return $this->getService( 'PasswordFactory' );
1066  }
1067 
1072  public function getPasswordReset() : PasswordReset {
1073  return $this->getService( 'PasswordReset' );
1074  }
1075 
1080  public function getPerDbNameStatsdDataFactory() : StatsdDataFactoryInterface {
1081  return $this->getService( 'PerDbNameStatsdDataFactory' );
1082  }
1083 
1088  public function getPermissionManager() : PermissionManager {
1089  return $this->getService( 'PermissionManager' );
1090  }
1091 
1096  public function getPreferencesFactory() : PreferencesFactory {
1097  return $this->getService( 'PreferencesFactory' );
1098  }
1099 
1104  public function getProxyLookup() : ProxyLookup {
1105  return $this->getService( 'ProxyLookup' );
1106  }
1107 
1112  public function getReadOnlyMode() : ReadOnlyMode {
1113  return $this->getService( 'ReadOnlyMode' );
1114  }
1115 
1120  public function getRepoGroup() : RepoGroup {
1121  return $this->getService( 'RepoGroup' );
1122  }
1123 
1128  public function getResourceLoader() : ResourceLoader {
1129  return $this->getService( 'ResourceLoader' );
1130  }
1131 
1136  public function getRevertedTagUpdateManager() : RevertedTagUpdateManager {
1137  return $this->getService( 'RevertedTagUpdateManager' );
1138  }
1139 
1144  public function getRevisionFactory() : RevisionFactory {
1145  return $this->getService( 'RevisionFactory' );
1146  }
1147 
1152  public function getRevisionLookup() : RevisionLookup {
1153  return $this->getService( 'RevisionLookup' );
1154  }
1155 
1160  public function getRevisionRenderer() : RevisionRenderer {
1161  return $this->getService( 'RevisionRenderer' );
1162  }
1163 
1168  public function getRevisionStore() : RevisionStore {
1169  return $this->getService( 'RevisionStore' );
1170  }
1171 
1176  public function getRevisionStoreFactory() : RevisionStoreFactory {
1177  return $this->getService( 'RevisionStoreFactory' );
1178  }
1179 
1184  public function newSearchEngine() : SearchEngine {
1185  // New engine object every time, since they keep state
1186  return $this->getService( 'SearchEngineFactory' )->create();
1187  }
1188 
1194  return $this->getService( 'SearchEngineConfig' );
1195  }
1196 
1202  return $this->getService( 'SearchEngineFactory' );
1203  }
1204 
1209  public function getShellCommandFactory() : CommandFactory {
1210  return $this->getService( 'ShellCommandFactory' );
1211  }
1212 
1217  public function getSiteLookup() : SiteLookup {
1218  return $this->getService( 'SiteLookup' );
1219  }
1220 
1225  public function getSiteStore() : SiteStore {
1226  return $this->getService( 'SiteStore' );
1227  }
1228 
1233  public function getSkinFactory() : SkinFactory {
1234  return $this->getService( 'SkinFactory' );
1235  }
1236 
1241  public function getSlotRoleRegistry() : SlotRoleRegistry {
1242  return $this->getService( 'SlotRoleRegistry' );
1243  }
1244 
1249  public function getSlotRoleStore() : NameTableStore {
1250  return $this->getService( 'SlotRoleStore' );
1251  }
1252 
1257  public function getSpamChecker() : SpamChecker {
1258  return $this->getService( 'SpamChecker' );
1259  }
1260 
1265  public function getSpecialPageFactory() : SpecialPageFactory {
1266  return $this->getService( 'SpecialPageFactory' );
1267  }
1268 
1274  return $this->getService( 'StatsdDataFactory' );
1275  }
1276 
1281  public function getTalkPageNotificationManager() : TalkPageNotificationManager {
1282  return $this->getService( 'TalkPageNotificationManager' );
1283  }
1284 
1289  public function getTempFSFileFactory() : TempFSFileFactory {
1290  return $this->getService( 'TempFSFileFactory' );
1291  }
1292 
1297  public function getTitleFactory() : TitleFactory {
1298  return $this->getService( 'TitleFactory' );
1299  }
1300 
1305  public function getTitleFormatter() : TitleFormatter {
1306  return $this->getService( 'TitleFormatter' );
1307  }
1308 
1313  public function getTitleParser() : TitleParser {
1314  return $this->getService( 'TitleParser' );
1315  }
1316 
1321  public function getUnblockUserFactory() : UnblockUserFactory {
1322  return $this->getService( 'UnblockUserFactory' );
1323  }
1324 
1330  return $this->getService( 'UploadRevisionImporter' );
1331  }
1332 
1337  public function getUserEditTracker() : UserEditTracker {
1338  return $this->getService( 'UserEditTracker' );
1339  }
1340 
1345  public function getUserFactory() : UserFactory {
1346  return $this->getService( 'UserFactory' );
1347  }
1348 
1353  public function getUserGroupManager() : UserGroupManager {
1354  return $this->getService( 'UserGroupManager' );
1355  }
1356 
1361  public function getUserGroupManagerFactory() : UserGroupManagerFactory {
1362  return $this->getService( 'UserGroupManagerFactory' );
1363  }
1364 
1369  public function getUserNameUtils() : UserNameUtils {
1370  return $this->getService( 'UserNameUtils' );
1371  }
1372 
1377  public function getUserOptionsLookup() : UserOptionsLookup {
1378  return $this->getService( 'UserOptionsLookup' );
1379  }
1380 
1385  public function getUserOptionsManager() : UserOptionsManager {
1386  return $this->getService( 'UserOptionsManager' );
1387  }
1388 
1394  return $this->getService( 'VirtualRESTServiceClient' );
1395  }
1396 
1402  return $this->getService( 'WatchedItemQueryService' );
1403  }
1404 
1410  return $this->getService( 'WatchedItemStore' );
1411  }
1412 
1417  public function getWatchlistNotificationManager() : WatchlistNotificationManager {
1418  return $this->getService( 'WatchlistNotificationManager' );
1419  }
1420 
1425  public function getWikiPageFactory() : WikiPageFactory {
1426  return $this->getService( 'WikiPageFactory' );
1427  }
1428 
1434  return $this->getService( 'OldRevisionImporter' );
1435  }
1436 
1442  return $this->getService( 'WikiRevisionOldRevisionImporterNoUpdates' );
1443  }
1444 
1450  return $this->getService( 'UploadRevisionImporter' );
1451  }
1452 
1453 }
EventRelayerGroup
Factory class for spawning EventRelayer objects using configuration.
Definition: EventRelayerGroup.php:26
MediaWiki\MediaWikiServices\getMessageCache
getMessageCache()
Definition: MediaWikiServices.php:949
MediaWiki\MediaWikiServices\getBlockErrorFormatter
getBlockErrorFormatter()
Definition: MediaWikiServices.php:534
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:1209
MediaWiki\Block\BlockPermissionCheckerFactory
Factory class for BlockPermissionChecker.
Definition: BlockPermissionCheckerFactory.php:34
MediaWiki\MediaWikiServices\getInterwikiLookup
getInterwikiLookup()
Definition: MediaWikiServices.php:791
MediaWiki\Block\BlockUserFactory
Definition: BlockUserFactory.php:30
MediaWiki\MediaWikiServices\getSpamChecker
getSpamChecker()
Definition: MediaWikiServices.php:1257
MediaWiki\MediaWikiServices\getResourceLoader
getResourceLoader()
Definition: MediaWikiServices.php:1128
MediaWiki\MediaWikiServices\getSearchEngineConfig
getSearchEngineConfig()
Definition: MediaWikiServices.php:1193
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:1217
MediaWiki\MediaWikiServices\getParserFactory
getParserFactory()
Definition: MediaWikiServices.php:1056
MediaWiki\MediaWikiServices\getBlockManager
getBlockManager()
Definition: MediaWikiServices.php:542
MediaWiki\MediaWikiServices\getJobRunner
getJobRunner()
Definition: MediaWikiServices.php:799
MediaWiki\Block\BlockManager
A service class for checking blocks.
Definition: BlockManager.php:46
MediaWiki\MediaWikiServices\getBlockRestrictionStore
getBlockRestrictionStore()
Definition: MediaWikiServices.php:558
MediaWiki\MediaWikiServices\getDBLoadBalancer
getDBLoadBalancer()
Definition: MediaWikiServices.php:695
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition: MediaWikiServices.php:160
MimeAnalyzer
Implements functions related to MIME types such as detection and mapping to file extension.
Definition: MimeAnalyzer.php:33
Revision\RevisionStore
Service for looking up page revisions.
Definition: RevisionStore.php:81
MediaWiki\Block\BlockErrorFormatter
A service class for getting formatted information about a block.
Definition: BlockErrorFormatter.php:34
MediaWiki\Http\HttpRequestFactory
Factory creating MWHttpRequest objects.
Definition: HttpRequestFactory.php:38
MediaWiki\MediaWikiServices\getContentModelStore
getContentModelStore()
Definition: MediaWikiServices.php:655
MediaWiki\MediaWikiServices\getChangeTagDefStore
getChangeTagDefStore()
Definition: MediaWikiServices.php:591
MediaWiki\MediaWikiServices\getLanguageConverterFactory
getLanguageConverterFactory()
Definition: MediaWikiServices.php:807
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:550
MediaWiki\MediaWikiServices\getRevisionLookup
getRevisionLookup()
Definition: MediaWikiServices.php:1152
MediaWiki\SpecialPage\SpecialPageFactory
Factory for handling the special page list and generating SpecialPage objects.
Definition: SpecialPageFactory.php:65
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:583
MediaWiki\FileBackend\LockManager\LockManagerGroupFactory
Service to construct LockManagerGroups.
Definition: LockManagerGroupFactory.php:11
MediaWiki\MediaWikiServices\getCommentStore
getCommentStore()
Definition: MediaWikiServices.php:599
MediaWiki\MediaWikiServices\getGlobalIdGenerator
getGlobalIdGenerator()
Definition: MediaWikiServices.php:759
MediaWiki\MediaWikiServices\getSlotRoleStore
getSlotRoleStore()
Definition: MediaWikiServices.php:1249
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:727
MediaWiki\MediaWikiServices\getUserOptionsManager
getUserOptionsManager()
Definition: MediaWikiServices.php:1385
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:494
ActorMigration
This class handles the logic for the actor table migration and should always be used in lieu of direc...
Definition: ActorMigration.php:39
MediaWiki\MediaWikiServices\getWikiPageFactory
getWikiPageFactory()
Definition: MediaWikiServices.php:1425
MediaWiki\Block\DatabaseBlockStore
Definition: DatabaseBlockStore.php:44
Parser\ParserCacheFactory
Definition: ParserCacheFactory.php:35
MediaWiki\MediaWikiServices\getPermissionManager
getPermissionManager()
Definition: MediaWikiServices.php:1088
MediaWiki\MediaWikiServices\getLanguageFallback
getLanguageFallback()
Definition: MediaWikiServices.php:823
MediaWiki\MediaWikiServices\getGenderCache
getGenderCache()
Definition: MediaWikiServices.php:751
MediaWiki\MediaWikiServices\getEventRelayerGroup
getEventRelayerGroup()
Definition: MediaWikiServices.php:719
MediaWiki\MediaWikiServices\getLockManagerGroupFactory
getLockManagerGroupFactory()
Definition: MediaWikiServices.php:890
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:1008
MediaWiki\MediaWikiServices\getPasswordReset
getPasswordReset()
Definition: MediaWikiServices.php:1072
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:1329
MediaWiki\MediaWikiServices\getProxyLookup
getProxyLookup()
Definition: MediaWikiServices.php:1104
MediaWiki\MediaWikiServices\getSkinFactory
getSkinFactory()
Definition: MediaWikiServices.php:1233
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:463
MediaWiki\MediaWikiServices\getInstance
static getInstance()
Returns the global default instance of the top level service locator.
Definition: MediaWikiServices.php:192
MediaWiki\MediaWikiServices\getLocalisationCache
getLocalisationCache()
Definition: MediaWikiServices.php:874
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:1265
MediaWiki\MediaWikiServices\getAuthManager
getAuthManager()
Definition: MediaWikiServices.php:502
MediaWiki\MediaWikiServices\getMagicWordFactory
getMagicWordFactory()
Definition: MediaWikiServices.php:898
MediaWiki\MediaWikiServices\getPerDbNameStatsdDataFactory
getPerDbNameStatsdDataFactory()
Definition: MediaWikiServices.php:1080
MWException
MediaWiki exception.
Definition: MWException.php:29
MediaWiki\MediaWikiServices\resetServiceForTesting
resetServiceForTesting( $name, $destroy=true)
Resets the given service for testing purposes.
Definition: MediaWikiServices.php:428
MediaWiki\MediaWikiServices\getCryptHKDF
getCryptHKDF()
Definition: MediaWikiServices.php:671
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:272
MediaWiki\MediaWikiServices\getTempFSFileFactory
getTempFSFileFactory()
Definition: MediaWikiServices.php:1289
MediaWiki\MediaWikiServices\getWatchedItemStore
getWatchedItemStore()
Definition: MediaWikiServices.php:1409
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:631
MediaWiki\User\WatchlistNotificationManager
WatchlistNotificationManager service.
Definition: WatchlistNotificationManager.php:40
MediaWiki\MediaWikiServices\getMediaHandlerFactory
getMediaHandlerFactory()
Definition: MediaWikiServices.php:933
Config\get
get( $name)
Get a configuration variable such as "Sitename" or "UploadMaintenance.".
MediaWiki\MediaWikiServices\getRevertedTagUpdateManager
getRevertedTagUpdateManager()
Definition: MediaWikiServices.php:1136
CryptHKDF
Definition: CryptHKDF.php:33
MediaWiki\MediaWikiServices\getWatchedItemQueryService
getWatchedItemQueryService()
Definition: MediaWikiServices.php:1401
MediaWiki\MediaWikiServices\getUserEditTracker
getUserEditTracker()
Definition: MediaWikiServices.php:1337
MediaWiki\Cache\LinkBatchFactory
Definition: LinkBatchFactory.php:38
MediaWiki\MediaWikiServices\getUserFactory
getUserFactory()
Definition: MediaWikiServices.php:1345
MediaWiki\MediaWikiServices\getMergeHistoryFactory
getMergeHistoryFactory()
Definition: MediaWikiServices.php:941
MediaWiki\MediaWikiServices\getTitleParser
getTitleParser()
Definition: MediaWikiServices.php:1313
WatchedItemQueryService
Definition: WatchedItemQueryService.php:23
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\MediaWikiServices\getFileBackendGroup
getFileBackendGroup()
Definition: MediaWikiServices.php:743
MediaWiki
A helper class for throttling authentication attempts.
MediaWiki\MediaWikiServices\getParserCacheFactory
getParserCacheFactory()
Definition: MediaWikiServices.php:1048
MediaWiki\Block\UnblockUserFactory
Definition: UnblockUserFactory.php:29
MediaWiki\MediaWikiServices\getMessageFormatterFactory
getMessageFormatterFactory()
Definition: MediaWikiServices.php:957
Page\WikiPageFactory
Definition: WikiPageFactory.php:19
MediaWiki\MediaWikiServices\newSearchEngine
newSearchEngine()
Definition: MediaWikiServices.php:1184
MediaWiki\MediaWikiServices\getMainConfig
getMainConfig()
Returns the Config object that provides configuration for MediaWiki core.
Definition: MediaWikiServices.php:909
MediaWiki\MediaWikiServices\getObjectFactory
getObjectFactory()
ObjectFactory is intended for instantiating "handlers" from declarative definitions,...
Definition: MediaWikiServices.php:1000
MediaWiki\MediaWikiServices\getSearchEngineFactory
getSearchEngineFactory()
Definition: MediaWikiServices.php:1201
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:373
MediaWiki\MediaWikiServices\getRevisionStoreFactory
getRevisionStoreFactory()
Definition: MediaWikiServices.php:1176
MediaWiki\MediaWikiServices\getDBLoadBalancerFactory
getDBLoadBalancerFactory()
Definition: MediaWikiServices.php:703
MediaWiki\MediaWikiServices\newInstance
static newInstance(Config $bootstrapConfig, $loadWiring='')
Creates a new MediaWikiServices instance and initializes it according to the given $bootstrapConfig.
Definition: MediaWikiServices.php:346
MediaWiki\MediaWikiServices\getTitleFormatter
getTitleFormatter()
Definition: MediaWikiServices.php:1305
MediaWiki\MediaWikiServices\getLinkBatchFactory
getLinkBatchFactory()
Definition: MediaWikiServices.php:839
MediaWiki\MediaWikiServices\getHttpRequestFactory
getHttpRequestFactory()
Definition: MediaWikiServices.php:783
MediaWiki\MediaWikiServices\getRevisionFactory
getRevisionFactory()
Definition: MediaWikiServices.php:1144
MediaWiki\MediaWikiServices\getParserCache
getParserCache()
Definition: MediaWikiServices.php:1040
MediaWiki\MediaWikiServices\salvage
salvage(self $other)
@noinspection PhpDocSignatureInspection
Definition: MediaWikiServices.php:310
MediaWiki\FileBackend\FSFile\TempFSFileFactory
Definition: TempFSFileFactory.php:10
MediaWiki\MediaWikiServices\getPreferencesFactory
getPreferencesFactory()
Definition: MediaWikiServices.php:1096
MediaWiki\MediaWikiServices\__construct
__construct(Config $config)
Definition: MediaWikiServices.php:479
MediaWiki\MediaWikiServices\getContentModelChangeFactory
getContentModelChangeFactory()
Definition: MediaWikiServices.php:647
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:49
MediaWiki\MediaWikiServices\getPasswordFactory
getPasswordFactory()
Definition: MediaWikiServices.php:1064
ParserFactory
Definition: ParserFactory.php:33
MediaWiki\MediaWikiServices\getPageEditStash
getPageEditStash()
Definition: MediaWikiServices.php:1016
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporterNoUpdates
getWikiRevisionOldRevisionImporterNoUpdates()
Definition: MediaWikiServices.php:1441
MediaWiki\MediaWikiServices\getHtmlCacheUpdater
getHtmlCacheUpdater()
Definition: MediaWikiServices.php:775
MediaWiki\Content\IContentHandlerFactory
Definition: IContentHandlerFactory.php:10
MediaWiki\MediaWikiServices\getVirtualRESTServiceClient
getVirtualRESTServiceClient()
Definition: MediaWikiServices.php:1393
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:510
MediaWiki\MediaWikiServices\getConfigFactory
getConfigFactory()
Definition: MediaWikiServices.php:607
MediaWiki\Shell\CommandFactory
Factory facilitating dependency injection for Command.
Definition: CommandFactory.php:32
MediaWiki\MediaWikiServices\getWikiRevisionUploadImporter
getWikiRevisionUploadImporter()
Definition: MediaWikiServices.php:1449
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:1369
MediaWiki\MediaWikiServices\getUserGroupManagerFactory
getUserGroupManagerFactory()
Definition: MediaWikiServices.php:1361
HtmlCacheUpdater
Class to invalidate the CDN and HTMLFileCache entries associated with URLs/titles.
Definition: HtmlCacheUpdater.php:30
MediaWiki\MediaWikiServices\getRevisionRenderer
getRevisionRenderer()
Definition: MediaWikiServices.php:1160
MediaWiki\MediaWikiServices\getUserOptionsLookup
getUserOptionsLookup()
Definition: MediaWikiServices.php:1377
MediaWiki\MediaWikiServices\getContributionsLookup
getContributionsLookup()
Definition: MediaWikiServices.php:663
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:174
MediaWiki\Storage\NameTableStore
Definition: NameTableStore.php:36
MediaWiki\MediaWikiServices\getExternalStoreFactory
getExternalStoreFactory()
Definition: MediaWikiServices.php:735
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:687
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:1297
MediaWiki\Auth\AuthManager
This serves as the entry point to the authentication system.
Definition: AuthManager.php:88
MediaWiki\Storage\BlobStore
Service for loading and storing data blobs.
Definition: BlobStore.php:35
Revision\ContributionsLookup
Definition: ContributionsLookup.php:15
MediaWiki\User\UserOptionsManager
A service class to control user options.
Definition: UserOptionsManager.php:44
MediaWiki\MediaWikiServices\getMainWANObjectCache
getMainWANObjectCache()
Definition: MediaWikiServices.php:925
MediaWiki\MediaWikiServices\getMimeAnalyzer
getMimeAnalyzer()
Definition: MediaWikiServices.php:965
IBufferingStatsdDataFactory
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
Definition: IBufferingStatsdDataFactory.php:13
MediaWiki\MediaWikiServices\getSiteStore
getSiteStore()
Definition: MediaWikiServices.php:1225
MediaWiki\MediaWikiServices\getBlobStore
getBlobStore()
Definition: MediaWikiServices.php:518
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:1321
MediaWiki\MediaWikiServices\getLocalServerObjectCache
getLocalServerObjectCache()
Definition: MediaWikiServices.php:882
MediaWiki\MediaWikiServices\getMovePageFactory
getMovePageFactory()
Definition: MediaWikiServices.php:973
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:526
MediaWiki\MediaWikiServices\getConfiguredReadOnlyMode
getConfiguredReadOnlyMode()
Definition: MediaWikiServices.php:623
MediaWiki\MediaWikiServices\getLanguageFactory
getLanguageFactory()
Definition: MediaWikiServices.php:815
MediaWiki\MediaWikiServices\getRevisionStore
getRevisionStore()
Definition: MediaWikiServices.php:1168
MediaWiki\User\UserEditTracker
Track info about user edit counts and timings.
Definition: UserEditTracker.php:19
MediaWiki\MediaWikiServices\getWikiRevisionOldRevisionImporter
getWikiRevisionOldRevisionImporter()
Definition: MediaWikiServices.php:1433
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:1032
MediaWiki\MediaWikiServices\getLanguageNameUtils
getLanguageNameUtils()
Definition: MediaWikiServices.php:831
MediaWiki\MediaWikiServices\getDatabaseBlockStore
getDatabaseBlockStore()
Definition: MediaWikiServices.php:679
MediaWiki\MediaWikiServices\getNamespaceInfo
getNamespaceInfo()
Definition: MediaWikiServices.php:981
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:397
MediaWiki\MediaWikiServices\getSlotRoleRegistry
getSlotRoleRegistry()
Definition: MediaWikiServices.php:1241
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:639
TitleFactory
Creates Title objects.
Definition: TitleFactory.php:33
MediaWiki\MediaWikiServices\getConfigRepository
getConfigRepository()
Definition: MediaWikiServices.php:615
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
Definition: ParserCache.php:32
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:1024
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:711
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:562
MediaWiki\MediaWikiServices\getLinkRendererFactory
getLinkRendererFactory()
Definition: MediaWikiServices.php:866
MediaWiki\MediaWikiServices\getBlockUserFactory
getBlockUserFactory()
Definition: MediaWikiServices.php:566
MediaWiki\MediaWikiServices\getUserGroupManager
getUserGroupManager()
Definition: MediaWikiServices.php:1353
JobRunner
Job queue runner utility methods.
Definition: JobRunner.php:41
MediaWiki\MediaWikiServices\getTalkPageNotificationManager
getTalkPageNotificationManager()
Definition: MediaWikiServices.php:1281
MediaWiki\MediaWikiServices\getLinkRenderer
getLinkRenderer()
LinkRenderer instance that can be used if no custom options are needed.
Definition: MediaWikiServices.php:858
MediaWiki\MediaWikiServices\getHookContainer
getHookContainer()
Definition: MediaWikiServices.php:767
MediaWiki\MediaWikiServices\getWatchlistNotificationManager
getWatchlistNotificationManager()
Definition: MediaWikiServices.php:1417
MediaWiki\MediaWikiServices\getMainObjectStash
getMainObjectStash()
Definition: MediaWikiServices.php:917
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:847
PasswordReset
Helper class for the password reset functionality shared by the web UI and the API.
Definition: PasswordReset.php:43
MediaWiki\MediaWikiServices\getReadOnlyMode
getReadOnlyMode()
Definition: MediaWikiServices.php:1112
MediaWiki\User\UserFactory
Creates User objects.
Definition: UserFactory.php:36
Language
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition: Language.php:41
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:222
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:1273
MediaWiki\MediaWikiServices\getNameTableStoreFactory
getNameTableStoreFactory()
Definition: MediaWikiServices.php:989
MediaWiki\MediaWikiServices\getRepoGroup
getRepoGroup()
Definition: MediaWikiServices.php:1120