static function ( MediaWikiServices $services ) { return new OATHAuthDatabase( new ServiceOptions( OATHAuthDatabase::CONSTRUCTOR_OPTIONS, $services->getMainConfig(), ), $services->getDBLoadBalancerFactory(), ); }, 'OATHAuthModuleRegistry' => static function ( MediaWikiServices $services ) { return new OATHAuthModuleRegistry( $services->getService( 'OATHAuthDatabase' ), ExtensionRegistry::getInstance()->getAttribute( 'OATHAuthModules' ), ); }, 'OATHUserRepository' => static function ( MediaWikiServices $services ) { return new OATHUserRepository( $services->getService( 'OATHAuthDatabase' ), new HashBagOStuff( [ 'maxKey' => 5 ] ), $services->getService( 'OATHAuthModuleRegistry' ), $services->getCentralIdLookupFactory(), LoggerFactory::getInstance( 'authentication' ) ); } ];