From 3a3d7ea6cdb184a02b103430d7a27823491f17c3 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 15 Oct 2020 16:43:21 +0200 Subject: [PATCH] Type the authentication listeners Signed-off-by: Christoph Wurst --- lib/private/Authentication/Listeners/LoginFailedListener.php | 3 +++ .../Authentication/Listeners/RemoteWipeActivityListener.php | 3 +++ .../Authentication/Listeners/RemoteWipeEmailListener.php | 3 +++ .../Listeners/RemoteWipeNotificationsListener.php | 3 +++ .../Listeners/UserDeletedStoreCleanupListener.php | 3 +++ .../Listeners/UserDeletedTokenCleanupListener.php | 3 +++ lib/private/Authentication/Listeners/UserLoggedInListener.php | 3 +++ 7 files changed, 21 insertions(+) diff --git a/lib/private/Authentication/Listeners/LoginFailedListener.php b/lib/private/Authentication/Listeners/LoginFailedListener.php index 72800ad509c..19f0b92c3a6 100644 --- a/lib/private/Authentication/Listeners/LoginFailedListener.php +++ b/lib/private/Authentication/Listeners/LoginFailedListener.php @@ -35,6 +35,9 @@ use OCP\EventDispatcher\IEventListener; use OCP\IUserManager; use OCP\Util; +/** + * @template-implements IEventListener<\OC\Authentication\Events\LoginFailed> + */ class LoginFailedListener implements IEventListener { /** @var IEventDispatcher */ diff --git a/lib/private/Authentication/Listeners/RemoteWipeActivityListener.php b/lib/private/Authentication/Listeners/RemoteWipeActivityListener.php index 0ab2dcf4837..76daebd717e 100644 --- a/lib/private/Authentication/Listeners/RemoteWipeActivityListener.php +++ b/lib/private/Authentication/Listeners/RemoteWipeActivityListener.php @@ -35,6 +35,9 @@ use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; use OCP\ILogger; +/** + * @template-implements IEventListener<\OC\Authentication\Events\ARemoteWipeEvent> + */ class RemoteWipeActivityListener implements IEventListener { /** @var IActvityManager */ diff --git a/lib/private/Authentication/Listeners/RemoteWipeEmailListener.php b/lib/private/Authentication/Listeners/RemoteWipeEmailListener.php index 799c4ea4cf5..adde844d42a 100644 --- a/lib/private/Authentication/Listeners/RemoteWipeEmailListener.php +++ b/lib/private/Authentication/Listeners/RemoteWipeEmailListener.php @@ -40,6 +40,9 @@ use OCP\Mail\IMailer; use OCP\Mail\IMessage; use function substr; +/** + * @template-implements IEventListener<\OC\Authentication\Events\ARemoteWipeEvent> + */ class RemoteWipeEmailListener implements IEventListener { /** @var IMailer */ diff --git a/lib/private/Authentication/Listeners/RemoteWipeNotificationsListener.php b/lib/private/Authentication/Listeners/RemoteWipeNotificationsListener.php index 831107a05cd..965fb291fbf 100644 --- a/lib/private/Authentication/Listeners/RemoteWipeNotificationsListener.php +++ b/lib/private/Authentication/Listeners/RemoteWipeNotificationsListener.php @@ -35,6 +35,9 @@ use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; use OCP\Notification\IManager as INotificationManager; +/** + * @template-implements IEventListener<\OC\Authentication\Events\ARemoteWipeEvent> + */ class RemoteWipeNotificationsListener implements IEventListener { /** @var INotificationManager */ diff --git a/lib/private/Authentication/Listeners/UserDeletedStoreCleanupListener.php b/lib/private/Authentication/Listeners/UserDeletedStoreCleanupListener.php index c8f2da82db6..057568f514e 100644 --- a/lib/private/Authentication/Listeners/UserDeletedStoreCleanupListener.php +++ b/lib/private/Authentication/Listeners/UserDeletedStoreCleanupListener.php @@ -31,6 +31,9 @@ use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; use OCP\User\Events\UserDeletedEvent; +/** + * @template-implements IEventListener<\OCP\User\Events\UserDeletedEvent> + */ class UserDeletedStoreCleanupListener implements IEventListener { /** @var Registry */ diff --git a/lib/private/Authentication/Listeners/UserDeletedTokenCleanupListener.php b/lib/private/Authentication/Listeners/UserDeletedTokenCleanupListener.php index 3b362336675..440629414ea 100644 --- a/lib/private/Authentication/Listeners/UserDeletedTokenCleanupListener.php +++ b/lib/private/Authentication/Listeners/UserDeletedTokenCleanupListener.php @@ -33,6 +33,9 @@ use OCP\ILogger; use OCP\User\Events\UserDeletedEvent; use Throwable; +/** + * @template-implements IEventListener<\OCP\User\Events\UserDeletedEvent> + */ class UserDeletedTokenCleanupListener implements IEventListener { /** @var Manager */ diff --git a/lib/private/Authentication/Listeners/UserLoggedInListener.php b/lib/private/Authentication/Listeners/UserLoggedInListener.php index f3ab833734d..9d90f09b296 100644 --- a/lib/private/Authentication/Listeners/UserLoggedInListener.php +++ b/lib/private/Authentication/Listeners/UserLoggedInListener.php @@ -31,6 +31,9 @@ use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; use OCP\User\Events\PostLoginEvent; +/** + * @template-implements IEventListener<\OCP\User\Events\PostLoginEvent> + */ class UserLoggedInListener implements IEventListener { /** @var Manager */ -- 2.39.5