Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 7 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | /** |
4 | * ServiceWiring files for VisualEditor. |
5 | * |
6 | * @file |
7 | * @ingroup Extensions |
8 | * @copyright 2011-2021 VisualEditor Team and others; see AUTHORS.txt |
9 | * @license MIT |
10 | */ |
11 | |
12 | namespace MediaWiki\Extension\VisualEditor; |
13 | |
14 | use MediaWiki\MediaWikiServices; |
15 | |
16 | return [ |
17 | VisualEditorParsoidClientFactory::SERVICE_NAME => static function ( |
18 | MediaWikiServices $services |
19 | ): VisualEditorParsoidClientFactory { |
20 | return new VisualEditorParsoidClientFactory( $services->getPageRestHelperFactory() ); |
21 | }, |
22 | ]; |