wiki.techinc.nl/includes
Martin Urbanec a656d03597 Introduce backend class for blocking users
Rather than having to do DatabaseBlock calls directly,
and then ManualLogEntry calls to facilitate logging,
let's create a BlockUser service, capable of blocking users
and logging, optionally with permission checking.

This should make blocking users easier for developers,
for instance, AbuseFilter or CheckUser can easily
benefit from this commit.

Bug: T189073
Change-Id: Ifdced735b694b85116cb0e43dadbfa8e4cdb8cab
2020-09-22 14:14:01 +01:00
..
actions Use localized success message after watching via action=watch 2020-09-17 16:28:58 +08:00
api Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
auth Merge "Replace "@stable for implementation" with "@stable to implement"" 2020-07-13 09:31:44 +00:00
block Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
cache Merge "Replace wfGetDB with LoadBalancer in LinkCache service" 2020-09-05 21:57:15 +00:00
changes CSS 'class' names can be an array in Html::…element 2020-09-08 19:11:19 +00:00
changetags Add mw-reverted change tag 2020-08-31 13:40:50 +00:00
clientpool
collation Merge "Update stability annotations to follow new stable interface policy" 2020-07-13 10:05:02 +00:00
compat
composer
config Merge "Replace "@stable for implementation" with "@stable to implement"" 2020-07-13 09:31:44 +00:00
content Replace tabs with spaces 2020-09-04 18:04:07 +02:00
context context: Throw from recursive calls to RequestContext::getLanguage 2020-07-28 23:02:05 +00:00
dao Fix broken PHPDoc comments that don't start with /** 2020-07-23 16:09:41 +00:00
db Mark CONSTRUCTOR_OPTIONS as internal 2020-08-21 00:18:45 -04:00
debug Do not use @var on const 2020-07-31 21:55:28 +02:00
deferred Use strict (in)equality with namespaces constants when LHS is definitely an integer 2020-07-31 18:03:28 +01:00
diff Fix broken PHPDoc comments that don't start with /** 2020-07-23 16:09:41 +00:00
edit
editpage
exception includes: Use expression assignment operator += or |= where possible 2020-07-31 22:26:42 +00:00
export make prefetch for dumps work with large revisions for multiple files 2020-07-13 14:01:42 +03:00
externalstore Hard deprecate ExternalStoreDB::getSlave() 2020-07-29 13:05:10 +00:00
filebackend Mark CONSTRUCTOR_OPTIONS as internal 2020-08-21 00:18:45 -04:00
filerepo Merge "Hard deprecate File::userCan() with $user=null" 2020-09-16 21:08:09 +00:00
gallery Merge "Update stability annotations to follow new stable interface policy" 2020-07-13 10:05:02 +00:00
historyblob phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
Hook Merge "resourceloader: Use a local HookRunner" 2020-09-21 21:45:09 +00:00
HookContainer Merge "resourceloader: Use a local HookRunner" 2020-09-21 21:45:09 +00:00
htmlform Collapsible HTMLForms need to add JS module 2020-09-15 17:01:46 +00:00
http Fix GuzzleHttpRequest request headers 2020-09-21 13:57:32 +10:00
import Use recordUpload3, hard deprecate recordUpload2 2020-09-10 00:00:42 +00:00
installer Merge "Prevent service injection to LoadExtensionSchemaUpdates hook" 2020-09-21 20:00:31 +00:00
interwiki Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00
jobqueue Add mw-reverted change tag 2020-08-31 13:40:50 +00:00
json Flip Yoda conditionals 2020-07-22 17:49:12 +01:00
language Drop Message->getFormat(), hard deprecated since 1.29 2020-09-20 14:56:41 +01:00
libs Localisation updates from https://translatewiki.net. 2020-09-21 08:27:56 +02:00
linkeddata
linker Avoid SpecialPage::getTitleValueFor in LinkRenderer 2020-08-10 16:11:23 +02:00
logging Use ::class to refer HTML form field classes 2020-09-19 09:48:24 +02:00
mail Remove some space indenting 2020-09-14 22:58:25 +01:00
media media: Remove checks for ancient ImageMagick versions in BitmapHandler 2020-09-04 14:40:42 +00:00
Message
Navigation Whitespace cleanup: Use tabs for indentation, avoid double spaces 2020-06-27 07:53:07 +00:00
objectcache objectcache: only use memcached "gets" when tokens are needed 2020-07-15 00:16:46 +00:00
page Merge "Allow for safe deserialization of WikiPage objects." 2020-09-17 20:24:11 +00:00
pager Merge "Replace "@stable for subclassing" with "@stable to extend"" 2020-07-13 09:31:38 +00:00
ParamValidator/TypeDef UserDef DI 2020-08-05 16:36:53 +00:00
parser Require three parameters to ParserCache::__construct() 2020-09-18 08:14:15 +10:00
password Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00
Permissions Add delete-redirect for deleting single-rev redirects during moves 2020-09-04 03:50:17 +00:00
poolcounter Add doc comment for PoolCounter::isFastStaleEnabled() 2020-09-17 22:07:15 +00:00
preferences Deprecations from HookRunner call site migration 2020-09-18 08:12:51 +10:00
profiler profiler: Use PSR-3 logging in Profiler and ProfilerOutput classes 2020-08-12 03:51:29 +00:00
rcfeed Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00
registration resourceloader: Add skin-based 'mediawiki.skin.variables.less' import 2020-09-15 10:05:53 +00:00
resourceloader resourceloader: Use a local HookRunner 2020-09-17 01:53:18 +00:00
Rest Localisation updates from https://translatewiki.net. 2020-09-22 08:33:03 +02:00
Revision Merge "Add extra details to error log to debug why null revision creation is failing" 2020-09-04 10:14:13 +00:00
revisiondelete Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00
revisionlist
search Deprecations from HookRunner call site migration 2020-09-18 08:12:51 +10:00
session Merge "Replace "@stable for implementation" with "@stable to implement"" 2020-07-13 09:31:44 +00:00
shell Merge "Don't pass stdin to commands by default" 2020-09-18 21:04:50 +00:00
site Explicitly wrap some XML calls in libxml_disable_entity_loader() 2020-09-20 15:57:14 +00:00
skins Deprecate Skin::makeVariablesScript() 2020-09-21 20:02:13 +00:00
sparql Mark exceptions as @newable 2020-07-08 17:51:38 +00:00
specialpage Inject service into SpecialFewestRevisions/SpecialMostRevisions 2020-09-19 09:24:25 +02:00
specials Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
Storage Merge "Remove unwanted parse step" 2020-09-22 03:57:13 +00:00
templates
tidy Whitespace cleanup: Use tabs for indentation, avoid double spaces 2020-06-27 07:53:07 +00:00
title Remove $wgAllowImageMoving, deprecated 2020-09-14 01:21:50 +00:00
upload Manually redirect in UploadFromUrl 2020-09-14 21:36:36 +02:00
user Deprecations from HookRunner call site migration 2020-09-18 08:12:51 +10:00
utils Add setCaller to BatchRowIterator 2020-08-21 17:52:56 +00:00
watcheditem Correct success messages for action=watch 2020-09-03 05:47:08 +08:00
widget Replace tabs with spaces 2020-09-04 18:04:07 +02:00
xml Drop down lists: Do not use the value for 'other' as option group 2020-09-16 19:30:43 +00:00
.htaccess
ActorMigration.php ActorMigration doc comment 2020-07-24 10:21:29 -07:00
AjaxDispatcher.php Whitespace cleanup: Use tabs for indentation, avoid double spaces 2020-06-27 07:53:07 +00:00
AjaxResponse.php
AutoLoader.php resourceloader: Use a local HookRunner 2020-09-17 01:53:18 +00:00
Autopromote.php Hard deprecate all methods in Autopromote class 2020-09-18 14:42:25 +00:00
BadFileLookup.php BadFile keeps a "bad file list", not a "blacklist" 2020-06-08 18:07:24 -04:00
CategoriesRdf.php
Category.php
CategoryViewer.php Use strict (in)equality with namespaces constants when LHS is definitely an integer 2020-07-31 18:03:28 +01:00
CommentStore.php CommentStore: Add documentation defgroup/ingroup annotations 2020-07-25 05:42:20 +00:00
CommentStoreComment.php CommentStore: Add documentation defgroup/ingroup annotations 2020-07-25 05:42:20 +00:00
ConfiguredReadOnlyMode.php
ContentSecurityPolicy.php
DefaultSettings.php Handle CORS preflight request and prevent anon users from unsafe methods 2020-09-21 19:29:40 -04:00
Defines.php Create fallback for undefined content models. 2020-07-22 19:59:09 +02:00
DeprecatedGlobal.php
DerivativeRequest.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
DevelopmentSettings.php DevelopmentSettings: Make sure all currently used global have a global call 2020-09-21 17:08:48 +01:00
DummyLinker.php
EditPage.php EditPage: ensure we only try to formatNum() numeric strings 2020-09-17 22:42:55 -04:00
EventRelayerGroup.php
ExtensionInfo.php
FauxRequest.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
FauxResponse.php
FeedUtils.php FeedUtils::checkFeedOutput add $output parameter 2020-09-10 22:45:57 +00:00
FileDeleteForm.php Remove support for FileDeleteForm::doDelete without a user 2020-09-09 23:48:08 +00:00
ForeignResourceManager.php Pass function name to HttpRequestFactory::create 2020-06-07 12:20:06 +00:00
ForkController.php
FormOptions.php
GitInfo.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
GlobalFunctions.php Deprecate Skin::makeVariablesScript() 2020-09-21 20:02:13 +00:00
HeaderCallback.php Merge "HeaderCallback: Sanitize cookie values in debug logs" 2020-07-03 03:28:53 +00:00
Hooks.php Introduce wfDeprecatedMsg() 2020-06-22 14:34:39 +10:00
Html.php
Linker.php Update language in watchlist expiry 2020-08-14 11:47:03 -07:00
LinkFilter.php
ListToggle.php
MagicWord.php Use @internal instead of @private per policy 2020-06-26 14:14:23 +02:00
MagicWordArray.php
MagicWordFactory.php Revert "Adding = as a parser function" 2020-07-03 14:52:27 +00:00
MediaWiki.php Use strict (in)equality with namespaces constants when LHS is definitely an integer 2020-07-31 18:03:28 +01:00
MediaWikiServices.php Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
MediaWikiVersionFetcher.php Make use of the preg_match() return value, if possible 2020-07-14 19:26:35 +00:00
MergeHistory.php Use HookContainer to get the HookRunner in MergeHistory 2020-08-26 17:51:05 +00:00
MovePage.php Merge "Add delete-redirect for deleting single-rev redirects during moves" 2020-09-04 14:04:35 +00:00
MWGrants.php Add import permissions to new import grant 2020-09-16 09:15:59 +02:00
MWNamespace.php
MWTimestamp.php Annotate newable classes 2020-07-07 15:38:57 +02:00
NoLocalSettings.php
OrderedStreamingForkController.php
OutputHandler.php
OutputPage.php Avoid null query in Skin::lastModified 2020-08-18 13:41:53 +02:00
PageProps.php Support use of TitleArray 2020-09-01 12:15:29 -04:00
PathRouter.php
PHPVersionCheck.php Fix broken PHPDoc comments that don't start with /** 2020-07-23 16:09:41 +00:00
Pingback.php Merge "Pass function name to database functions" 2020-06-07 16:03:38 +00:00
ProtectionForm.php ProtectionForm: Use available permission manager, not MediaWikiServices 2020-07-13 07:11:05 +00:00
ProxyLookup.php
RawMessage.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
ReadOnlyMode.php
Revision.php Merge "Hard deprecate the rest of the Revision class" 2020-07-06 13:57:55 +00:00
ServiceWiring.php Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
Setup.php Remove $wgMemc 2020-07-27 23:45:22 +00:00
SiteConfiguration.php includes: Use expression assignment operator += or |= where possible 2020-07-31 22:26:42 +00:00
SiteStats.php
SiteStatsInit.php Fix broken PHPDoc comments that don't start with /** 2020-07-23 16:09:41 +00:00
Status.php Annotate newable classes 2020-07-07 15:38:57 +02:00
StreamFile.php
StubObject.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
StubUserLang.php
TemplateParser.php
TemplatesOnThisPageFormatter.php
Title.php Title::getNotificationTimestamp - require passing a user 2020-08-27 00:19:17 +00:00
TitleArray.php
TitleArrayFromResult.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
TitleFactory.php
TrackingCategories.php Tracking category and parser warning for deprecated uses of {{=}} 2020-09-15 20:16:37 +00:00
WebRequest.php Remove hard deprecated WebRequest::getLimitOffset 2020-08-21 22:02:45 +00:00
WebRequestUpload.php
WebResponse.php Support SameSite=None cookies 2020-07-07 02:18:45 +01:00
WebStart.php
WikiMap.php
WikiReference.php