Make PreferencesHandler implement the hook interface

Follow-up to Ic7024d9c5f369eb33c4198a59638de9a1d58b04b.

Change-Id: I143dc53806eda8424440803833ef2a25b2893d1d
This commit is contained in:
Matěj Suchánek 2024-09-13 18:44:43 +02:00
parent 2ef2257922
commit 3ec6902f41

View file

@ -5,9 +5,10 @@ namespace MediaWiki\Extension\AbuseFilter\Hooks\Handlers;
use MediaWiki\Extension\AbuseFilter\AbuseLoggerFactory;
use MediaWiki\Permissions\PermissionManager;
use MediaWiki\Preferences\Hook\GetPreferencesHook;
use MediaWiki\User\Options\Hook\SaveUserOptionsHook;
use MediaWiki\User\UserIdentity;
class PreferencesHandler implements GetPreferencesHook {
class PreferencesHandler implements GetPreferencesHook, SaveUserOptionsHook {
private PermissionManager $permissionManager;
private AbuseLoggerFactory $abuseLoggerFactory;