diff options
Diffstat (limited to 'AbuseFilter/includes/ServiceWiring.php')
-rw-r--r-- | AbuseFilter/includes/ServiceWiring.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/AbuseFilter/includes/ServiceWiring.php b/AbuseFilter/includes/ServiceWiring.php new file mode 100644 index 00000000..5901ca80 --- /dev/null +++ b/AbuseFilter/includes/ServiceWiring.php @@ -0,0 +1,13 @@ +<?php + +use MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterHookRunner; +use MediaWiki\Extension\AbuseFilter\KeywordsManager; +use MediaWiki\MediaWikiServices; + +return [ + KeywordsManager::SERVICE_NAME => function ( MediaWikiServices $services ): KeywordsManager { + return new KeywordsManager( + new AbuseFilterHookRunner( $services->getHookContainer() ) + ); + }, +]; |