2020-01-15 16:08:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace MediaWiki\Extension\AbuseFilter;
|
|
|
|
|
|
|
|
use MediaWiki\MediaWikiServices;
|
|
|
|
|
|
|
|
class AbuseFilterServices {
|
|
|
|
/**
|
|
|
|
* Conveniency wrapper for strong typing
|
|
|
|
* @return KeywordsManager
|
|
|
|
*/
|
|
|
|
public static function getKeywordsManager() : KeywordsManager {
|
|
|
|
return MediaWikiServices::getInstance()->getService( KeywordsManager::SERVICE_NAME );
|
|
|
|
}
|
2020-09-20 22:31:41 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Conveniency wrapper for strong typing
|
|
|
|
* @return FilterProfiler
|
|
|
|
*/
|
|
|
|
public static function getFilterProfiler() : FilterProfiler {
|
|
|
|
return MediaWikiServices::getInstance()->getService( FilterProfiler::SERVICE_NAME );
|
|
|
|
}
|
2020-09-18 14:49:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return AbuseFilterPermissionManager
|
|
|
|
*/
|
|
|
|
public static function getPermissionManager() : AbuseFilterPermissionManager {
|
|
|
|
return MediaWikiServices::getInstance()->getService( AbuseFilterPermissionManager::SERVICE_NAME );
|
|
|
|
}
|
2020-10-13 16:01:18 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return ChangeTagger
|
|
|
|
*/
|
|
|
|
public static function getChangeTagger() : ChangeTagger {
|
|
|
|
return MediaWikiServices::getInstance()->getService( ChangeTagger::SERVICE_NAME );
|
|
|
|
}
|
2020-10-14 14:21:48 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return ChangeTagsManager
|
|
|
|
*/
|
|
|
|
public static function getChangeTagsManager() : ChangeTagsManager {
|
|
|
|
return MediaWikiServices::getInstance()->getService( ChangeTagsManager::SERVICE_NAME );
|
|
|
|
}
|
2020-01-15 16:08:53 +00:00
|
|
|
}
|