From: Christoph Wurst Date: Thu, 15 Oct 2020 14:43:21 +0000 (+0200) Subject: Type the authentication listeners X-Git-Tag: v20.0.1RC1~16^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3a3d7ea6cdb184a02b103430d7a27823491f17c3;p=nextcloud-server.git Type the authentication listeners Signed-off-by: Christoph Wurst --- 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 */