* @file
*/
+use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\IDatabase;
/**
public function __construct( ApiMain $main, $action ) {
parent::__construct( $main, $action );
- $this->mModuleMgr = new ApiModuleManager( $this );
+ $this->mModuleMgr = new ApiModuleManager(
+ $this,
+ MediaWikiServices::getInstance()->getObjectFactory()
+ );
// Allow custom modules to be added in LocalSettings.php
$config = $this->getConfig();