mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-14 11:15:13 +00:00
21 lines
536 B
PHP
21 lines
536 B
PHP
|
<?php
|
||
|
|
||
|
use MediaWiki\Config\ServiceOptions;
|
||
|
use MediaWiki\Extension\Math\InputCheck\InputCheckFactory;
|
||
|
use MediaWiki\Logger\LoggerFactory;
|
||
|
use MediaWiki\MediaWikiServices;
|
||
|
|
||
|
return [
|
||
|
'Math.CheckerFactory' => function ( MediaWikiServices $services ): InputCheckFactory {
|
||
|
return new InputCheckFactory(
|
||
|
new ServiceOptions(
|
||
|
InputCheckFactory::CONSTRUCTOR_OPTIONS,
|
||
|
$services->getMainConfig()
|
||
|
),
|
||
|
$services->getMainWANObjectCache(),
|
||
|
$services->getHttpRequestFactory(),
|
||
|
LoggerFactory::getInstance( 'Math' )
|
||
|
);
|
||
|
},
|
||
|
];
|