mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-11-24 06:54:08 +00:00
Hooks: Use better callable with EchoAttributeManager::ATTR_LOCATORS
Bug: T325950 Change-Id: Iaf7f51453802e4ca9ffae786129bb402994adc03
This commit is contained in:
parent
f1610a37a1
commit
bc6e531aa2
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue