Hooks: Use better callable with EchoAttributeManager::ATTR_LOCATORS

Bug: T325950
Change-Id: Iaf7f51453802e4ca9ffae786129bb402994adc03
This commit is contained in:
Reedy 2022-12-27 01:16:08 +00:00
parent f1610a37a1
commit bc6e531aa2

View file

@ -10,6 +10,7 @@ namespace LoginNotify;
use EchoAttributeManager;
use EchoEvent;
use EchoUserLocator;
use MediaWiki\Auth\AuthenticationResponse;
use User;
@ -40,7 +41,7 @@ class Hooks {
$loginBase = [
EchoAttributeManager::ATTR_LOCATORS => [
'EchoUserLocator::locateEventAgent'
[ [ EchoUserLocator::class, 'locateArticleCreator' ] ],
],
'canNotifyAgent' => true,
'category' => 'login-fail',