mediawiki-extensions-LoginN.../includes/ServiceWiring.php
Tim Starling a0a387d195 Don't notify of failed logins for system or temporary users
Bug: T329774
Change-Id: I65fa3da22f45002e013d3bd5c8b0efda5f8b5edb
2023-09-04 17:01:52 +10:00

25 lines
645 B
PHP

<?php
use LoginNotify\LoginNotify;
use MediaWiki\Config\ServiceOptions;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
return [
'LoginNotify.LoginNotify' => static function ( MediaWikiServices $services ): LoginNotify {
return new LoginNotify(
new ServiceOptions(
LoginNotify::CONSTRUCTOR_OPTIONS,
$services->getMainConfig()
),
$services->getMainObjectStash(),
LoggerFactory::getInstance( 'LoginNotify' ),
$services->getStatsdDataFactory(),
$services->getDBLoadBalancerFactory(),
$services->getJobQueueGroup(),
$services->getCentralIdLookup(),
$services->getAuthManager()
);
}
];