wikimedia/mediawiki-extensions-VisualEditor

View on GitHub
includes/ServiceWiring.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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 [
    VisualEditorParsoidClientFactory::SERVICE_NAME => static function (
        MediaWikiServices $services
    ): VisualEditorParsoidClientFactory {
        return new VisualEditorParsoidClientFactory( $services->getPageRestHelperFactory() );
    },
];