MediaWiki REL1_34
ServiceWiring.php File Reference

Go to the source code of this file.

Variables

 return [ 'OATHAuth'=> function(MediaWikiServices $services) { return new OATHAuth($services->getMainConfig(), $services->getDBLoadBalancerFactory());}, 'OATHUserRepository'=> function(MediaWikiServices $services) { global $wgOATHAuthDatabase;$auth=$services->getService( 'OATHAuth');return new OATHUserRepository($services->getDBLoadBalancerFactory() ->getMainLB( $wgOATHAuthDatabase), new \HashBagOStuff(['maxKey'=> 5]), $auth);}]
 

Variable Documentation

◆ return

return['OATHAuth'=> function(MediaWikiServices $services) { return new OATHAuth( $services->getMainConfig(), $services->getDBLoadBalancerFactory());}, 'OATHUserRepository'=> function(MediaWikiServices $services) { global $wgOATHAuthDatabase; $auth=$services->getService('OATHAuth'); return new OATHUserRepository( $services->getDBLoadBalancerFactory() ->getMainLB($wgOATHAuthDatabase), new \HashBagOStuff([ 'maxKey'=> 5]), $auth);}]

Definition at line 7 of file ServiceWiring.php.