mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
19 lines
555 B
PHP
19 lines
555 B
PHP
|
<?php
|
||
|
|
||
|
namespace MediaWiki\Extension\ConfirmEdit;
|
||
|
|
||
|
use MediaWiki\Extension\AbuseFilter\Consequences\Parameters;
|
||
|
use MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterCustomActionsHook;
|
||
|
use MediaWiki\Extension\ConfirmEdit\AbuseFilter\CaptchaConsequence;
|
||
|
|
||
|
class AbuseFilterHooks implements AbuseFilterCustomActionsHook {
|
||
|
|
||
|
/** @inheritDoc */
|
||
|
public function onAbuseFilterCustomActions( array &$actions ): void {
|
||
|
$actions['showcaptcha'] = static function ( Parameters $params ): CaptchaConsequence {
|
||
|
return new CaptchaConsequence( $params );
|
||
|
};
|
||
|
}
|
||
|
|
||
|
}
|