wiki.techinc.nl/includes
mainframe98 eb8823743c Use ObjectFactory to create API modules
This will allow constructing API modules that need services.

This overhauls some of the internals of the ApiModuleManager,
but the public interface remains unchanged.
The $class parameter of addModule, (now called $spec)
also allows passing an array with the spec of the module.
Note that this spec requires the attribute 'class' to be present,
even when 'factory' is specified. This is the same as before,
where $class was always required.

In a perfect DI world ObjectFactory would be injected into
ApiMain::__construct and ApiMain would pass that to its instance
of ApiModuleManager, but that is currently not possible, so for now
it is injected in ApiModuleManager by having ApiMain::__construct
call the service locator.

Bug: T222388
Change-Id: Iee04afc27283547dd68d6db93f44ac2e0ebf1258
2019-09-09 18:50:16 +00:00
..
actions Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
api Use ObjectFactory to create API modules 2019-09-09 18:50:16 +00:00
auth auth: Use phan templates for getRequestByClass 2019-09-08 15:44:46 +00:00
block Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
cache Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
changes Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
changetags Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
clientpool
collation
composer
config Better docs to make phan happy 2019-09-07 16:47:18 +00:00
content Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
context RequestContext: Declare the dynamic property for language recursion 2019-09-08 18:32:05 +00:00
dao Make DBAccessBase use DBConnRef, rename $wiki, and hide getLoadBalancer() 2019-09-08 03:34:18 +00:00
db Make ObjectCache check the value of apc.enable_cli in CLI mode 2019-08-29 09:04:18 -07:00
debug Add docblocks to a bunch of methods 2019-09-08 18:33:31 +00:00
deferred Better docs to make phan happy 2019-09-07 16:47:18 +00:00
diff DifferenceEngine: show undo links for non-text content 2019-09-06 15:58:31 +02:00
edit
editpage Move getRestrictionLevels from NamespaceInfo to PermissionManager. 2019-08-22 14:32:38 -07:00
exception Unpack arrays on variadic arguments 2019-08-31 23:23:50 +00:00
export Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
externalstore externalstore: use CONN_TRX_AUTOCOMMIT instead of IDatabase::clearFlag() 2019-07-27 05:08:06 -04:00
filebackend FileJournal tests 2019-09-03 10:12:41 +00:00
filerepo Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
gallery Unsuppress other phan issues (part 4) 2019-08-31 17:13:39 +00:00
historyblob Unsuppress phan issues part 6 2019-09-01 09:48:45 +00:00
htmlform Improve various PHP method doc blocks 2019-09-05 18:45:40 +00:00
http Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
import Add docblocks to a bunch of methods 2019-09-08 18:33:31 +00:00
installer Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
interwiki
jobqueue Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
json
language Unsuppress more phan issues (part 3) 2019-08-31 16:38:55 +00:00
libs Add docblocks to a bunch of methods 2019-09-08 18:33:31 +00:00
linkeddata
linker
logging Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
mail mail: Avoid use of global state and use MediaWiki services DI 2019-08-27 14:19:49 +01:00
media Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
Message lib/Message: Support MessageValue as a parameter 2019-08-30 15:14:37 -04:00
Navigation Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
objectcache Unsuppress other phan issues (part 4) 2019-08-31 17:13:39 +00:00
page Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
pager Pass Title to IndexPager::buildPrevNextNavigation 2019-09-04 20:25:59 +02:00
parser parser: Declare some dynamic properties 2019-09-08 19:03:03 +00:00
password Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
Permissions Unsuppress other phan issues (part 4) 2019-08-31 17:13:39 +00:00
poolcounter Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
preferences Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
profiler Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
rcfeed Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
registration Merge "registration: Avoid redundant LBYL check in ExtensionRegistry::queue()" 2019-09-05 18:07:25 +00:00
resourceloader resourceloader: Add $conf parameter to the 'ResourceLoaderGetConfigVars' hook 2019-09-07 15:30:40 +00:00
Rest rest: Use ParamValidator library, add BodyValidator 2019-09-04 10:12:35 -04:00
Revision Merge "Introduce RevisionStore::newRevisionsFromBatch" 2019-09-04 18:13:34 +00:00
revisiondelete Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
revisionlist Globally unsuppress phan issues with low count 2019-08-30 09:40:47 +00:00
search Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
session Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
shell Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
site Unsuppress more phan issues (part 3) 2019-08-31 16:38:55 +00:00
skins Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
sparql
specialpage Support the creation of special pages with services injected 2019-09-08 12:57:54 +02:00
specials Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
Storage Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
templates Fix recent changes and watchlist separator whitespace 2019-07-30 18:46:47 +01:00
tidy
title Merge "Add NS_MAIN to NamespaceInfo::$canonicalNames" 2019-09-04 17:03:24 +00:00
upload Simplify some code by changing single-scope properties to local variables 2019-09-07 16:59:20 +00:00
user Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
utils Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
watcheditem watcheditem: Fix bad $options param in NoWriteWatchedItemStore::countWatchersMultiple 2019-09-08 04:00:09 +00:00
widget Unsuppress phan issues part 6 2019-09-01 09:48:45 +00:00
.htaccess
ActorMigration.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
AjaxDispatcher.php Replace User::isAllowed with PermissionManager. 2019-08-20 14:43:51 -07:00
AjaxResponse.php Remove support for wgUseESI 2019-09-08 05:11:57 +01:00
AutoLoader.php MessageFormatterFactory 2019-08-28 12:28:05 +10:00
Autopromote.php Remove deprecated User groups/permission static calls. 2019-08-21 19:42:01 -07:00
BadFileLookup.php BadFileLookup to replace wfIsBadImage 2019-08-21 20:45:37 +03:00
CategoriesRdf.php
Category.php Remove more Oracle and Mssql leftovers 2019-08-25 17:21:49 +00:00
CategoryFinder.php Clean up spacing of doc comments 2019-08-05 22:29:50 +00:00
CategoryViewer.php
CommentStore.php Improve documentation of getJoin() methods for static analysis 2019-07-03 15:45:01 +02:00
CommentStoreComment.php
ConfiguredReadOnlyMode.php
ContentSecurityPolicy.php
DefaultSettings.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
Defines.php Clean up spacing of doc comments 2019-08-05 22:29:50 +00:00
DeprecatedGlobal.php
DerivativeRequest.php
DevelopmentSettings.php DevelopmentSettings: Clarify grouping of settings and purpose 2019-08-07 14:23:58 +00:00
DummyLinker.php Linker: Force type Language for $lang in tocList and generateTOC 2019-07-16 07:03:59 +02:00
EditPage.php Merge "Make wgDisableAnonTalk disable anon links in automatic edit summaries" 2019-09-08 02:54:56 +00:00
EventRelayerGroup.php
FauxRequest.php Unsuppress more phan issues (part 3) 2019-08-31 16:38:55 +00:00
FauxResponse.php
FeedUtils.php Avoid usage of deprecated Revision::* constants 2019-07-21 18:02:58 +01:00
FileDeleteForm.php Document $file in FileDeleteForm as LocalFile (not File) 2019-09-08 04:02:20 +00:00
ForeignResourceManager.php
ForkController.php LockManagerGroupFactory to replace singletons 2019-08-27 13:19:15 +03:00
FormOptions.php Clean up spacing of doc comments 2019-08-05 22:29:50 +00:00
GitInfo.php
GlobalFunctions.php Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
HeaderCallback.php
Hooks.php
Html.php Html: Make linkButton() documentation less confusing 2019-07-10 23:04:59 +00:00
Linker.php Avoid multiply calls to MediaWikiServices::getInstance() in one function 2019-09-01 20:49:19 +02:00
LinkFilter.php Better grouping for code adding elements to arrays 2019-09-03 19:38:57 +02:00
ListToggle.php
MagicWord.php Clean up spacing of doc comments 2019-08-05 22:29:50 +00:00
MagicWordArray.php
MagicWordFactory.php Clean up spacing of doc comments 2019-08-05 22:29:50 +00:00
MediaWiki.php Replace unecessary rollbackMasterChangesAndLog() call in doPostOutputShutdown() 2019-08-29 22:21:36 -07:00
MediaWikiServices.php Merge "MessageFormatterFactory" 2019-08-30 22:12:28 +00:00
MediaWikiVersionFetcher.php
MergeHistory.php Replace User::isAllowed with PermissionManager. 2019-08-20 14:43:51 -07:00
MovePage.php Fix PhpStorm IDE warnings in ServiceWiring.php 2019-09-03 23:03:23 +00:00
MWGrants.php
MWNamespace.php Move getRestrictionLevels from NamespaceInfo to PermissionManager. 2019-08-22 14:32:38 -07:00
MWTimestamp.php
NoLocalSettings.php
OrderedStreamingForkController.php
OutputHandler.php Remove $wgUseKeyHeader and OutputPage::getKeyHeader(), deprecated in 1.32 2019-06-19 15:14:54 -04:00
OutputPage.php Remove support for wgUseESI 2019-09-08 05:11:57 +01:00
PageProps.php
PathRouter.php Setup: Move wgActionPath logic to PathRouter 2019-09-04 20:29:03 +00:00
PHPVersionCheck.php PHPVersionCheck: remove version_compare() existence check 2019-06-14 22:23:49 +00:00
Pingback.php
ProtectionForm.php Move getRestrictionLevels from NamespaceInfo to PermissionManager. 2019-08-22 14:32:38 -07:00
ProxyLookup.php ProxyLookup: Optimise in_array in isConfiguredProxy() 2019-08-31 22:30:08 +01:00
RawMessage.php
ReadOnlyMode.php Fix types around ILoadBalancer and IResultWrapper 2019-07-04 21:56:31 +02:00
Revision.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ServiceWiring.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
Setup.php Merge "Add MW_REST_API and MW_ENTRY_POINT" 2019-09-09 15:29:21 +00:00
SiteConfiguration.php
SiteStats.php Switch various LoadBalancer::getConnection() callers to getConnectionRef() 2019-07-12 10:56:30 -07:00
SiteStatsInit.php Convert LoadBalancer::getConnection() callers to LoadBalancer::getConnectionRef() 2019-07-21 01:02:49 -07:00
Status.php
StreamFile.php
StubObject.php
StubUserLang.php
TemplateParser.php
TemplatesOnThisPageFormatter.php Remove usages of Title::quickUserCan 2019-08-29 11:48:30 -07:00
Title.php Merge "Setup: Move wgActionPath logic to PathRouter" 2019-09-05 19:17:28 +00:00
TitleArray.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
TitleArrayFromResult.php Fix param doc of TitleArrayFromResult::setCurrent 2019-07-18 16:43:02 +00:00
TrackingCategories.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
WebRequest.php Merge "Stop mangling $_GET and provide WebRequest::getQueryValuesOnly()" 2019-09-06 17:38:26 +00:00
WebRequestUpload.php
WebResponse.php
WebStart.php WebStart: Avoid DB or uselang for nonwrite-api-promise-error message 2019-08-25 19:15:34 +01:00
WikiMap.php Remove Oracle reference from WikiMap 2019-09-01 23:27:27 +00:00
WikiReference.php
Xml.php
XmlJsCode.php
XmlSelect.php