2021-04-22 19:27:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ServiceWiring files for VisualEditor.
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
|
|
|
* @copyright 2011-2021 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace MediaWiki\Extension\VisualEditor;
|
|
|
|
|
|
|
|
use MediaWiki\MediaWikiServices;
|
|
|
|
|
|
|
|
return [
|
2022-08-29 10:44:06 +00:00
|
|
|
VisualEditorParsoidClientFactory::SERVICE_NAME => static function (
|
|
|
|
MediaWikiServices $services
|
|
|
|
): VisualEditorParsoidClientFactory {
|
2023-08-30 14:45:38 +00:00
|
|
|
return new VisualEditorParsoidClientFactory( $services->getPageRestHelperFactory() );
|
2022-08-29 10:44:06 +00:00
|
|
|
},
|
2021-04-22 19:27:47 +00:00
|
|
|
];
|