mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-24 15:33:42 +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;
|
||
|
},
|
||
|
];
|