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
FlaggedRevsMediaWikiServicesHooks
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
2namespace MediaWiki\Extension\FlaggedRevs\Backend;
3
4use FlaggedRevsSetup;
5use MediaWiki\Hook\MediaWikiServicesHook;
6
7/**
8 * Initialize derived configuration variables on service container setup.
9 */
10class FlaggedRevsMediaWikiServicesHooks implements MediaWikiServicesHook {
11
12    /**
13     * @inheritDoc
14     */
15    public function onMediaWikiServices( $services ): void {
16        ( new FlaggedRevsSetup( $services->getMainConfig() ) )->doSetup();
17    }
18}