Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 9 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | use MediaWiki\Config\Config; |
4 | use MediaWiki\Config\ServiceOptions; |
5 | use MediaWiki\Extension\OAuth\Control\Workflow; |
6 | use MediaWiki\Extension\OAuth\OAuthServices; |
7 | use MediaWiki\MediaWikiServices; |
8 | |
9 | return [ |
10 | |
11 | 'OAuthConfig' => static function ( MediaWikiServices $services ): Config { |
12 | return $services->getMainConfig(); |
13 | }, |
14 | |
15 | 'OAuthWorkflow' => static function ( MediaWikiServices $services ): Workflow { |
16 | $oauthConfig = OAuthServices::wrap( $services )->getConfig(); |
17 | return new Workflow( new ServiceOptions( Workflow::CONSTRUCTOR_OPTIONS, $oauthConfig ) ); |
18 | }, |
19 | |
20 | ]; |