mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-12-19 02:10:41 +00:00
13 lines
340 B
PHP
13 lines
340 B
PHP
|
<?php
|
||
|
|
||
|
use MediaWiki\Extension\Gadgets\GadgetRepo;
|
||
|
use MediaWiki\MediaWikiServices;
|
||
|
|
||
|
return [
|
||
|
'GadgetsRepo' => static function ( MediaWikiServices $services ): GadgetRepo {
|
||
|
/** @var $repo GadgetRepo */
|
||
|
$repo = $services->getObjectFactory()->createObject( $services->getMainConfig()->get( 'GadgetsRepoClass' ) );
|
||
|
return $repo;
|
||
|
},
|
||
|
];
|