wiki.techinc.nl/includes/api
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
..
i18n Localisation updates from https://translatewiki.net. 2019-09-09 08:27:07 +02:00
ApiAMCreateAccount.php
ApiAuthManagerHelper.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiBase.php Merge "Stop mangling $_GET and provide WebRequest::getQueryValuesOnly()" 2019-09-06 17:38:26 +00:00
ApiBlock.php Better grouping for code adding elements to arrays 2019-09-03 19:38:57 +02:00
ApiBlockInfoTrait.php Fix AbstractBlock param types in documentation 2019-05-14 13:42:50 +01:00
ApiChangeAuthenticationData.php
ApiCheckToken.php
ApiClearHasMsg.php
ApiClientLogin.php
ApiComparePages.php Deprecate and replace usages of User:isAllowed{All,Any} 2019-08-21 18:36:16 -07:00
ApiContinuationManager.php Fix/suppress misc phan errors (#4) 2019-04-05 22:28:31 +00:00
ApiCSPReport.php API: Fix 'user_id' field of ApiCSPReport 2019-07-19 22:58:39 +01:00
ApiDelete.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiDisabled.php
ApiEditPage.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiEmailUser.php
ApiErrorFormatter.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiErrorFormatter_BackCompat.php Split ApiErrorFormatter.php to have one class in one file 2019-04-21 22:20:22 +00:00
ApiExpandTemplates.php API: Remove unused asignment to $titleProvided in ApiExpandTemplates 2019-09-08 03:46:13 +00:00
ApiFeedContributions.php ApiFeedContributions: Drop 'newbies' feature 2019-08-28 14:22:05 +00:00
ApiFeedRecentChanges.php Remove unused constructor parameter and unused member variables 2019-04-14 01:43:19 +00:00
ApiFeedWatchlist.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiFileRevert.php
ApiFormatBase.php Remove usage of deprecated SkinFactory::getDefaultInstance() 2019-06-02 21:08:07 -04:00
ApiFormatFeedWrapper.php Refactor edit stashing into a PageEditStash service 2019-04-17 12:53:03 -07:00
ApiFormatJson.php
ApiFormatNone.php
ApiFormatPhp.php Various fixes to make phan-taint-check happier 2019-03-04 03:24:44 +00:00
ApiFormatRaw.php Simplify by using ?: operator 2019-04-15 15:05:00 +02:00
ApiFormatXml.php
ApiFormatXmlRsd.php Fix a couple of Generic.Files.OneObjectStructurePerFile.MultipleFound in api 2019-04-13 23:32:53 +00:00
ApiHelp.php API: Warn about POST without Content-Type 2019-08-19 13:00:37 -04:00
ApiHelpParamValueMessage.php
ApiImageRotate.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiImport.php Replace User::isAllowed with PermissionManager. 2019-08-20 14:43:51 -07:00
ApiImportReporter.php Unsuppress more phan issues (part 3) 2019-08-31 16:38:55 +00:00
ApiLinkAccount.php
ApiLogin.php Remove unnecessary semi-colons 2019-06-12 14:35:59 +01:00
ApiLogout.php ApiLogout: Follow up Icb674095 2019-04-25 10:00:24 -04:00
ApiMain.php Use ObjectFactory to create API modules 2019-09-09 18:50:16 +00:00
ApiManageTags.php Replace User::isAllowed with PermissionManager. 2019-08-20 14:43:51 -07:00
ApiMergeHistory.php
ApiMessage.php
ApiMessageTrait.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiModuleManager.php Use ObjectFactory to create API modules 2019-09-09 18:50:16 +00:00
ApiMove.php Avoid multiply calls to MediaWikiServices::getInstance() in one function 2019-09-01 20:49:19 +02:00
ApiOpenSearch.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiOpenSearchFormatJson.php Fix a couple of Generic.Files.OneObjectStructurePerFile.MultipleFound in api 2019-04-13 23:32:53 +00:00
ApiOptions.php
ApiPageSet.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiParamInfo.php
ApiParse.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiPatrol.php
ApiProtect.php
ApiPurge.php
ApiQuery.php Use ObjectFactory to create API modules 2019-09-09 18:50:16 +00:00
ApiQueryAllCategories.php
ApiQueryAllDeletedRevisions.php Use local variabe $services instead of MediaWikiServices::getInstance() 2019-08-26 16:12:05 +02:00
ApiQueryAllImages.php Remove deprecated User groups/permission static calls. 2019-08-21 19:42:01 -07:00
ApiQueryAllLinks.php i18n: Rename 11 messages for case-compliance 2019-05-18 16:39:49 +02:00
ApiQueryAllMessages.php
ApiQueryAllPages.php i18n: Rename 11 messages for case-compliance 2019-05-18 16:39:49 +02:00
ApiQueryAllRevisions.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ApiQueryAllUsers.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ApiQueryAuthManagerInfo.php
ApiQueryBacklinks.php Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
ApiQueryBacklinksprop.php API: Apply miser-mode namespace check for generator=redirects 2019-06-07 20:36:18 +00:00
ApiQueryBase.php Deprecate and replace usages of User:isAllowed{All,Any} 2019-08-21 18:36:16 -07:00
ApiQueryBlocks.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiQueryCategories.php ApiQueryCategories: Supply limit for DB query 2019-09-02 11:39:45 +00:00
ApiQueryCategoryInfo.php
ApiQueryCategoryMembers.php
ApiQueryContributors.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ApiQueryDeletedRevisions.php Deprecate and replace usages of User:isAllowed{All,Any} 2019-08-21 18:36:16 -07:00
ApiQueryDeletedrevs.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiQueryDisabled.php
ApiQueryDuplicateFiles.php
ApiQueryExternalLinks.php
ApiQueryExtLinksUsage.php
ApiQueryFilearchive.php Deprecate and replace usages of User:isAllowed{All,Any} 2019-08-21 18:36:16 -07:00
ApiQueryFileRepoInfo.php
ApiQueryGeneratorBase.php
ApiQueryImageInfo.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
ApiQueryImages.php
ApiQueryInfo.php Unsuppress phan issues part 6 2019-09-01 09:48:45 +00:00
ApiQueryIWBacklinks.php
ApiQueryIWLinks.php
ApiQueryLangBacklinks.php
ApiQueryLangLinks.php
ApiQueryLanguageinfo.php Fix meta=languageinfo usage example 2019-06-25 10:45:14 +02:00
ApiQueryLinks.php
ApiQueryLogEvents.php Deprecate and replace usages of User:isAllowed{All,Any} 2019-08-21 18:36:16 -07:00
ApiQueryMyStashedFiles.php
ApiQueryPagePropNames.php
ApiQueryPageProps.php
ApiQueryPagesWithProp.php
ApiQueryPrefixSearch.php
ApiQueryProtectedTitles.php Fix variable in ApiQueryProtectedTitles 2019-05-23 18:57:23 +02:00
ApiQueryQueryPage.php Avoid error in querypage API when there's no value field 2019-08-02 16:05:01 +02:00
ApiQueryRandom.php
ApiQueryRecentChanges.php Deprecate and replace usages of User:isAllowed{All,Any} 2019-08-21 18:36:16 -07:00
ApiQueryRevisions.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ApiQueryRevisionsBase.php Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
ApiQuerySearch.php Add ISearchResultSet 2019-07-22 18:27:39 +00:00
ApiQuerySiteinfo.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
ApiQueryStashImageInfo.php
ApiQueryTags.php
ApiQueryTokens.php
ApiQueryUserContribs.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ApiQueryUserInfo.php Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
ApiQueryUsers.php Unsuppress other phan issues (part 4) 2019-08-31 17:13:39 +00:00
ApiQueryWatchlist.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
ApiQueryWatchlistRaw.php
ApiRawMessage.php
ApiRemoveAuthenticationData.php
ApiResetPassword.php
ApiResult.php Clean up spacing of doc comments 2019-08-05 22:29:50 +00:00
ApiRevisionDelete.php Deprecate User::isBlocked() 2019-04-25 11:47:44 -04:00
ApiRollback.php
ApiRsd.php Fix a couple of Generic.Files.OneObjectStructurePerFile.MultipleFound in api 2019-04-13 23:32:53 +00:00
ApiSerializable.php
ApiSetNotificationTimestamp.php Don't require Title for getTimestampFromId 2019-05-05 14:35:53 +03:00
ApiSetPageLanguage.php
ApiStashEdit.php Remove redundant ignore_user_abort() call in ApiStashEdit 2019-08-29 22:18:57 -07:00
ApiTag.php Deprecate User::isBlocked() 2019-04-25 11:47:44 -04:00
ApiTokens.php
ApiUnblock.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiUndelete.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiUpload.php Better grouping for code adding elements to arrays 2019-09-03 19:38:57 +02:00
ApiUsageException.php
ApiUserrights.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiValidatePassword.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00
ApiWatch.php
IApiMessage.php
SearchApi.php Unsuppress more phan issues (part 5) 2019-09-01 09:48:31 +00:00