Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
MediaWikiServicesHooks
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 onMediaWikiServices
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace GrowthExperiments;
4
5use MediaWiki\Hook\MediaWikiServicesHook;
6
7/**
8 * Hook handler for MediaWikiServicesHook, used for changing configuration variables.
9 * This hook cannot have any dependencies and must rely on globals entirely.
10 */
11class MediaWikiServicesHooks implements MediaWikiServicesHook {
12
13    /** @inheritDoc */
14    public function onMediaWikiServices( $services ) {
15        global $wgNotifyTypeAvailabilityByCategory;
16        $wgNotifyTypeAvailabilityByCategory['ge-newcomer']['push'] = false;
17    }
18
19}