wiki.techinc.nl/includes/api
daniel 128565505c Mark additional classes as newable for now.
The following glasses are marked as newable per the
Stable Interface Policy, even though logically, they should not be
newable. This is done for classes that are currently instantiated
by extensions, and lack an alternative.

A better way for obtaining an instance of these classes should be
created in the future. At that point, direct instantiation should
be deprecated and replaced.

- includes/ApiMain.php - needs factory
- includes/media/BitmapMetadataHandler.php - should become a stateless service or use handler pattern
- includes/GitInfo.php - should become a stateless service
- includes/logging/LogPage.php - should become a stateless service or use command pattern
- includes/logging/ManualLogEntry.php - should become a stateless service or use command pattern
- includes/poolcounter/PoolCounterWorkViaCallback.php - needs a factory
- includes/context/RequestContext.php - needs to be narrowed down, and should use a factory
- includes/search/SearchHighlighter.php - should have a factory
- includes/TitleArrayFromResult.php - should perhaps be part of TitleFactory
- includes/user/User.php - should at least get a factory method for anons
- includes/diff/Diff.php: needs a TextDiffGenerator service or a factory
- includes/EditPage.php: needs a factory

Bug: T247862
Change-Id: I033158e693c98630ee167d9528fc8c9936f978d4
2020-07-08 18:06:12 +02:00
..
Hook Hook: Mark abortable=false hooks as void 2020-06-22 19:07:35 +00:00
i18n Localisation updates from https://translatewiki.net. 2020-07-08 09:10:05 +02:00
Validator Add expiry type to ParamValidator 2020-04-08 16:21:04 -04:00
ApiAMCreateAccount.php API: Use MediaWikiServices::getAuthManager in various Api classes 2020-06-20 23:04:17 +00:00
ApiAuthManagerHelper.php API: Use MediaWikiServices::getAuthManager in various Api classes 2020-06-20 23:04:17 +00:00
ApiBase.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiBlock.php Remove $wgEnablePartialBlocks config and always enable partial blocks 2020-03-04 13:45:44 +00:00
ApiBlockInfoTrait.php Coding style: Auto-fix MediaWiki.Commenting.DocComment.* 2020-01-10 12:28:12 -08:00
ApiChangeAuthenticationData.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiChangeContentModel.php Add ContentModelChangeFactory, implemented by PageCommandFactory 2020-05-30 22:36:16 +00:00
ApiCheckToken.php
ApiClearHasMsg.php ApiClearHasMsg: Use new TalkPageNotificationManager 2020-05-11 19:21:57 +00:00
ApiClientLogin.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiComparePages.php Added timestamp to action=compare 2020-04-09 16:24:21 -04:00
ApiContinuationManager.php Upgrade phan to 0.9.1 2020-01-25 10:53:26 +00:00
ApiCSPReport.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiDelete.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiDisabled.php ApiDisabled: Correctly fall back to api-help-no-extended-description 2020-01-13 09:24:11 -05:00
ApiEditPage.php Fix SingleSpaceBeforeSingleLineComment 2020-05-11 00:57:11 +00:00
ApiEmailUser.php
ApiErrorFormatter.php Clean up redundant Exception|Throwable union type 2020-02-12 20:28:40 +00:00
ApiErrorFormatter_BackCompat.php Clean up redundant Exception|Throwable union type 2020-02-12 20:28:40 +00:00
ApiExpandTemplates.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
ApiFeedContributions.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiFeedRecentChanges.php
ApiFeedWatchlist.php
ApiFileRevert.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiFormatBase.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiFormatFeedWrapper.php
ApiFormatJson.php
ApiFormatNone.php
ApiFormatPhp.php
ApiFormatRaw.php
ApiFormatXml.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiFormatXmlRsd.php
ApiHelp.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiHelpParamValueMessage.php Annotate newable classes 2020-07-07 15:38:57 +02:00
ApiHookRunner.php Hook: Mark abortable=false hooks as void 2020-06-22 19:07:35 +00:00
ApiImageRotate.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiImport.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiImportReporter.php
ApiLinkAccount.php API: Use MediaWikiServices::getAuthManager in various Api classes 2020-06-20 23:04:17 +00:00
ApiLogin.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiLogout.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiMain.php Mark additional classes as newable for now. 2020-07-08 18:06:12 +02:00
ApiManageTags.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiMergeHistory.php Add MergeHistoryFactory interface, implemented by PageCommandFactory 2020-05-13 19:08:09 +00:00
ApiMessage.php Annotate newable classes 2020-07-07 15:38:57 +02:00
ApiMessageTrait.php
ApiModuleManager.php
ApiMove.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiOpenSearch.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiOpenSearchFormatJson.php
ApiOptions.php Remove PreferencesFactory::setUser() 2020-06-08 00:27:04 +00:00
ApiPageSet.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiParamInfo.php Allow extensions (et al) to have multiple LICENSE/COPYING files 2020-05-05 22:49:04 +00:00
ApiParse.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiPatrol.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiProtect.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiPurge.php
ApiQuery.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
ApiQueryAllCategories.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryAllDeletedRevisions.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiQueryAllImages.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiQueryAllLinks.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryAllMessages.php Use MediaWikiServices::getMessageCache 2020-03-14 14:25:03 +01:00
ApiQueryAllPages.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryAllRevisions.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiQueryAllUsers.php Remove unused variable $commentStore 2020-01-20 15:59:06 +11:00
ApiQueryAuthManagerInfo.php API: Use MediaWikiServices::getAuthManager in various Api classes 2020-06-20 23:04:17 +00:00
ApiQueryBacklinks.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
ApiQueryBacklinksprop.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryBase.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiQueryBlockInfoTrait.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiQueryBlocks.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiQueryCategories.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryCategoryInfo.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryCategoryMembers.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryContributors.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiQueryDeletedRevisions.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiQueryDeletedrevs.php Hard deprecate Revision::userCanBitfield 2020-02-24 21:18:49 +00:00
ApiQueryDisabled.php ApiDisabled: Correctly fall back to api-help-no-extended-description 2020-01-13 09:24:11 -05:00
ApiQueryDuplicateFiles.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiQueryExternalLinks.php
ApiQueryExtLinksUsage.php ApiQueryExtLinksUsage: Avoid bad query plan 2020-02-04 16:05:11 -05:00
ApiQueryFilearchive.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryFileRepoInfo.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiQueryGeneratorBase.php Remove null check on type hinted argument 2020-06-19 19:18:28 +02:00
ApiQueryImageInfo.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiQueryImages.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryInfo.php Reduce direct uses of $wgUser in ApiQueryInfo's token methods 2020-06-08 02:12:51 +00:00
ApiQueryIWBacklinks.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryIWLinks.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryLangBacklinks.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryLangLinks.php Remove usages of deprecated Language methods 2020-02-16 00:45:48 +00:00
ApiQueryLanguageinfo.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiQueryLinks.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiQueryLogEvents.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiQueryMyStashedFiles.php
ApiQueryPagePropNames.php
ApiQueryPageProps.php
ApiQueryPagesWithProp.php Improve param docs 2019-11-28 19:08:59 +01:00
ApiQueryPrefixSearch.php Improve param docs 2019-11-28 19:08:59 +01:00
ApiQueryProtectedTitles.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryQueryPage.php Fix the namespace of SpecialPageFactory 2020-02-21 13:46:19 +11:00
ApiQueryRandom.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiQueryRecentChanges.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiQueryRevisions.php ApiQueryRevisions::getRollbackToken - pass RevisionRecord 2020-06-25 03:38:06 +00:00
ApiQueryRevisionsBase.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
ApiQuerySearch.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
ApiQuerySiteinfo.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiQueryStashImageInfo.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiQueryTags.php
ApiQueryTokens.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiQueryUserContribs.php Hard deprecate Revision::getParentLengths 2020-03-18 12:26:26 -07:00
ApiQueryUserInfo.php Merge "Use new TalkPageNotificationManager" 2020-05-20 19:21:52 +00:00
ApiQueryUsers.php Merge "Hard-deprecate UserGroupMembership methods replaced by manager" 2020-06-24 18:35:42 +00:00
ApiQueryWatchlist.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiQueryWatchlistRaw.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiRawMessage.php Annotate newable classes 2020-07-07 15:38:57 +02:00
ApiRemoveAuthenticationData.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiResetPassword.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiResult.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiRevisionDelete.php Fix some PHPStorm inspection warnings in includes/api 2020-02-18 14:17:37 -05:00
ApiRollback.php WikiPage::commitRollback - also return a RevisionRecord 2020-06-20 09:40:16 +00:00
ApiRsd.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiSerializable.php Stability annotations for interfaces. 2020-07-07 22:01:29 +00:00
ApiSetNotificationTimestamp.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiSetPageLanguage.php Remove usages of deprecated Language methods 2020-02-16 00:45:48 +00:00
ApiStashEdit.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:14 +01:00
ApiTag.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiTokens.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiUnblock.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiUndelete.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
ApiUpload.php Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
ApiUsageException.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiUserrights.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
ApiValidatePassword.php Merge "API: Use MediaWikiServices::getAuthManager in various Api classes" 2020-06-20 23:23:07 +00:00
ApiWatch.php WatchedItemStore: Enforce a maximum watchlist expiry duration 2020-05-22 00:15:23 -04:00
IApiMessage.php Hard deprecate Title::getUserPermissionsErrors 2020-02-26 05:09:55 +00:00
SearchApi.php