From b47a2730c095278708142cfb7ec42bc3c3468578 Mon Sep 17 00:00:00 2001 From: Christoph Wurst <christoph@winzerhof-wurst.at> Date: Thu, 15 Oct 2020 16:43:21 +0200 Subject: [PATCH] Type the authentication listeners Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> --- 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 b841f81555b..55009c317c4 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 Psr\Log\LoggerInterface; +/** + * @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 52698855bd5..9ba2717c973 100644 --- a/lib/private/Authentication/Listeners/RemoteWipeEmailListener.php +++ b/lib/private/Authentication/Listeners/RemoteWipeEmailListener.php @@ -40,6 +40,9 @@ use OCP\Mail\IMessage; use Psr\Log\LoggerInterface; 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 e1199814da5..bb3a522556f 100644 --- a/lib/private/Authentication/Listeners/UserDeletedTokenCleanupListener.php +++ b/lib/private/Authentication/Listeners/UserDeletedTokenCleanupListener.php @@ -33,6 +33,9 @@ use OCP\User\Events\UserDeletedEvent; use Psr\Log\LoggerInterface; 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 */ -- GitLab