Type the authentication listeners

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2020-10-15 16:43:21 +02:00
parent e646d7d5a9
commit b47a2730c0
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
7 changed files with 21 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */