зеркало из https://github.com/nextcloud/server.git
chore: Fix missing template parameter for IEventListener
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Родитель
063c051cdc
Коммит
8bcc2d352e
|
@ -30,6 +30,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Log\Audit\CriticalActionPerformedEvent;
|
||||
|
||||
/** @template-implements IEventListener<CriticalActionPerformedEvent> */
|
||||
class CriticalActionPerformedEventListener extends Action implements IEventListener {
|
||||
public function handle(Event $event): void {
|
||||
if (!($event instanceof CriticalActionPerformedEvent)) {
|
||||
|
|
|
@ -30,6 +30,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Files\IRootFolder;
|
||||
|
||||
/** @template-implements IEventListener<CommentsEntityEvent> */
|
||||
class CommentsEntityEventListener implements IEventListener {
|
||||
public function __construct(
|
||||
private IRootFolder $rootFolder,
|
||||
|
|
|
@ -33,6 +33,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Util;
|
||||
|
||||
/** @template-implements IEventListener<LoadAdditionalScriptsEvent> */
|
||||
class LoadAdditionalScripts implements IEventListener {
|
||||
public function handle(Event $event): void {
|
||||
if (!($event instanceof LoadAdditionalScriptsEvent)) {
|
||||
|
|
|
@ -35,6 +35,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Util;
|
||||
|
||||
/** @template-implements IEventListener<LoadSidebar> */
|
||||
class LoadSidebarScripts implements IEventListener {
|
||||
public function __construct(
|
||||
private ICommentsManager $commentsManager,
|
||||
|
|
|
@ -40,6 +40,7 @@ use Psr\Log\LoggerInterface;
|
|||
use Sabre\VObject\Component\VCard;
|
||||
use Sabre\VObject\UUIDUtil;
|
||||
|
||||
/** @template-implements IEventListener<ContactInteractedWithEvent> */
|
||||
class ContactInteractionListener implements IEventListener {
|
||||
|
||||
use TTransactional;
|
||||
|
@ -74,7 +75,7 @@ class ContactInteractionListener implements IEventListener {
|
|||
$uid = $event->getUid();
|
||||
$email = $event->getEmail();
|
||||
$federatedCloudId = $event->getFederatedCloudId();
|
||||
|
||||
|
||||
$existingContact = $this->cardSearchDao->findExisting(
|
||||
$event->getActor(),
|
||||
$uid,
|
||||
|
|
|
@ -44,6 +44,7 @@ use Psr\Log\LoggerInterface;
|
|||
use Throwable;
|
||||
use function sprintf;
|
||||
|
||||
/** @template-implements IEventListener<CalendarCreatedEvent|CalendarUpdatedEvent|CalendarMovedToTrashEvent|CalendarRestoredEvent|CalendarDeletedEvent|CalendarObjectCreatedEvent|CalendarObjectUpdatedEvent|CalendarObjectMovedEvent|CalendarObjectMovedToTrashEvent|CalendarObjectRestoredEvent|CalendarObjectDeletedEvent> */
|
||||
class ActivityUpdaterListener implements IEventListener {
|
||||
|
||||
/** @var ActivityBackend */
|
||||
|
|
|
@ -36,6 +36,7 @@ use Psr\Log\LoggerInterface;
|
|||
use Throwable;
|
||||
use function sprintf;
|
||||
|
||||
/** @template-implements IEventListener<AddressBookCreatedEvent|AddressBookUpdatedEvent|AddressBookDeletedEvent|AddressBookShareUpdatedEvent> */
|
||||
class AddressbookListener implements IEventListener {
|
||||
/** @var ActivityBackend */
|
||||
private $activityBackend;
|
||||
|
|
|
@ -32,6 +32,7 @@ use OCA\DAV\Events\CardUpdatedEvent;
|
|||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/** @template-implements IEventListener<CardCreatedEvent|CardUpdatedEvent|CardDeletedEvent> */
|
||||
class BirthdayListener implements IEventListener {
|
||||
private BirthdayService $birthdayService;
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ use Throwable;
|
|||
use function strlen;
|
||||
use function substr;
|
||||
|
||||
/** @template-implements IEventListener<CalendarObjectCreatedEvent|CalendarObjectUpdatedEvent|CalendarShareUpdatedEvent> */
|
||||
class CalendarContactInteractionListener implements IEventListener {
|
||||
private const URI_USERS = 'principals/users/';
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ use Psr\Log\LoggerInterface;
|
|||
use Throwable;
|
||||
|
||||
/**
|
||||
* @template-implements IEventListener<\OCA\DAV\Events\CalendarDeletedEvent>
|
||||
* @template-implements IEventListener<CalendarDeletedEvent>
|
||||
*/
|
||||
class CalendarDeletionDefaultUpdaterListener implements IEventListener {
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ use Psr\Log\LoggerInterface;
|
|||
use Throwable;
|
||||
use function sprintf;
|
||||
|
||||
/** @template-implements IEventListener<CalendarMovedToTrashEvent|CalendarDeletedEvent|CalendarRestoredEvent|CalendarObjectCreatedEvent|CalendarObjectUpdatedEvent|CalendarObjectMovedToTrashEvent|CalendarObjectRestoredEvent|CalendarObjectDeletedEvent> */
|
||||
class CalendarObjectReminderUpdaterListener implements IEventListener {
|
||||
|
||||
/** @var ReminderBackend */
|
||||
|
|
|
@ -32,6 +32,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/** @template-implements IEventListener<CalendarPublishedEvent|CalendarUnpublishedEvent> */
|
||||
class CalendarPublicationListener implements IEventListener {
|
||||
private Backend $activityBackend;
|
||||
private LoggerInterface $logger;
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/** @template-implements IEventListener<CalendarShareUpdatedEvent> */
|
||||
class CalendarShareUpdateListener implements IEventListener {
|
||||
private Backend $activityBackend;
|
||||
private LoggerInterface $logger;
|
||||
|
|
|
@ -36,6 +36,7 @@ use Psr\Log\LoggerInterface;
|
|||
use Throwable;
|
||||
use function sprintf;
|
||||
|
||||
/** @template-implements IEventListener<CardCreatedEvent|CardUpdatedEvent|CardDeletedEvent> */
|
||||
class CardListener implements IEventListener {
|
||||
/** @var ActivityBackend */
|
||||
private $activityBackend;
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCA\DAV\Events\CardUpdatedEvent;
|
|||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/** @template-implements IEventListener<CardUpdatedEvent|CardDeletedEvent> */
|
||||
class ClearPhotoCacheListener implements IEventListener {
|
||||
private PhotoCache $photoCache;
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/** @template-implements IEventListener<SubscriptionCreatedEvent|SubscriptionDeletedEvent> */
|
||||
class SubscriptionListener implements IEventListener {
|
||||
private IJobList $jobList;
|
||||
private RefreshWebcalService $refreshWebcalService;
|
||||
|
|
|
@ -30,6 +30,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Federation\Events\TrustedServerRemovedEvent;
|
||||
|
||||
/** @template-implements IEventListener<TrustedServerRemovedEvent> */
|
||||
class TrustedServerRemovedListener implements IEventListener {
|
||||
private CardDavBackend $cardDavBackend;
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCP\Config\BeforePreferenceSetEvent;
|
|||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/** @template-implements IEventListener<BeforePreferenceSetEvent|BeforePreferenceDeletedEvent> */
|
||||
class UserPreferenceListener implements IEventListener {
|
||||
|
||||
protected IJobList $jobList;
|
||||
|
|
|
@ -30,6 +30,7 @@ use OCA\Files\Event\LoadAdditionalScriptsEvent;
|
|||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/** @template-implements IEventListener<LoadAdditionalScriptsEvent> */
|
||||
class LoadAdditionalScriptsListener implements IEventListener {
|
||||
/** @var FederatedShareProvider */
|
||||
protected $federatedShareProvider;
|
||||
|
|
|
@ -33,6 +33,7 @@ use Sabre\DAV\Auth\Plugin;
|
|||
|
||||
/**
|
||||
* @since 20.0.0
|
||||
* @template-implements IEventListener<SabrePluginAuthInitEvent>
|
||||
*/
|
||||
class SabrePluginAuthInitListener implements IEventListener {
|
||||
private FedAuth $fedAuth;
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Util;
|
||||
|
||||
/** @template-implements IEventListener<LoadSidebar> */
|
||||
class LoadSidebarListener implements IEventListener {
|
||||
public function handle(Event $event): void {
|
||||
if (!($event instanceof LoadSidebar)) {
|
||||
|
|
|
@ -28,6 +28,7 @@ use OCP\Collaboration\Reference\RenderReferenceEvent;
|
|||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/** @template-implements IEventListener<RenderReferenceEvent> */
|
||||
class RenderReferenceEventListener implements IEventListener {
|
||||
public function handle(Event $event): void {
|
||||
if (!$event instanceof RenderReferenceEvent) {
|
||||
|
|
|
@ -28,6 +28,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Group\Events\GroupDeletedEvent;
|
||||
|
||||
/** @template-implements IEventListener<GroupDeletedEvent> */
|
||||
class GroupDeletedListener implements IEventListener {
|
||||
/** @var DBConfigService */
|
||||
private $config;
|
||||
|
|
|
@ -34,7 +34,7 @@ use OCP\IConfig;
|
|||
use OCP\Util;
|
||||
|
||||
/**
|
||||
* @template-implements IEventListener<Event|LoadAdditionalScriptsEvent>
|
||||
* @template-implements IEventListener<LoadAdditionalScriptsEvent>
|
||||
*/
|
||||
class LoadAdditionalListener implements IEventListener {
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ use OCP\Security\ICredentialsManager;
|
|||
use OCP\User\Events\PasswordUpdatedEvent;
|
||||
use OCP\User\Events\UserLoggedInEvent;
|
||||
|
||||
/** @template-implements IEventListener<PasswordUpdatedEvent|UserLoggedInEvent> */
|
||||
class StorePasswordListener implements IEventListener {
|
||||
/** @var ICredentialsManager */
|
||||
private $credentialsManager;
|
||||
|
|
|
@ -28,6 +28,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\User\Events\UserDeletedEvent;
|
||||
|
||||
/** @template-implements IEventListener<UserDeletedEvent> */
|
||||
class UserDeletedListener implements IEventListener {
|
||||
/** @var DBConfigService */
|
||||
private $config;
|
||||
|
|
|
@ -33,6 +33,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Util;
|
||||
|
||||
/** @template-implements IEventListener<LoadAdditionalScriptsEvent> */
|
||||
class LoadAdditionalScriptsListener implements IEventListener {
|
||||
public function __construct(
|
||||
private IAppManager $appManager,
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Files\Events\Node\NodeDeletedEvent;
|
||||
|
||||
/** @template-implements IEventListener<NodeDeletedEvent> */
|
||||
class NodeDeletedListener implements IEventListener {
|
||||
public function __construct(
|
||||
private ReminderService $reminderService,
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\User\Events\UserDeletedEvent;
|
||||
|
||||
/** @template-implements IEventListener<UserDeletedEvent> */
|
||||
class UserDeletedListener implements IEventListener {
|
||||
public function __construct(
|
||||
private ReminderService $reminderService,
|
||||
|
|
|
@ -32,6 +32,7 @@ use OCP\EventDispatcher\IEventListener;
|
|||
use OCP\Share\IManager;
|
||||
use OCP\Util;
|
||||
|
||||
/** @template-implements IEventListener<LoadAdditionalScriptsEvent> */
|
||||
class LoadAdditionalListener implements IEventListener {
|
||||
public function handle(Event $event): void {
|
||||
if (!($event instanceof LoadAdditionalScriptsEvent)) {
|
||||
|
|
|
@ -35,7 +35,7 @@ use OCP\Share\IManager;
|
|||
use OCP\Util;
|
||||
|
||||
/**
|
||||
* @template-implements IEventListener<Event>
|
||||
* @template-implements IEventListener<LoadSidebar>
|
||||
*/
|
||||
class LoadSidebarListener implements IEventListener {
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ use OCP\Share\IShare;
|
|||
use Psr\Log\LoggerInterface;
|
||||
use function in_array;
|
||||
|
||||
/** @template-implements IEventListener<ContactInteractedWithEvent> */
|
||||
class ShareInteractionListener implements IEventListener {
|
||||
private const SUPPORTED_SHARE_TYPES = [
|
||||
IShare::TYPE_USER,
|
||||
|
|
|
@ -33,6 +33,7 @@ use OCP\IConfig;
|
|||
use OCP\Share\IManager;
|
||||
use OCP\Share\IShare;
|
||||
|
||||
/** @template-implements IEventListener<UserAddedEvent> */
|
||||
class UserAddedToGroupListener implements IEventListener {
|
||||
|
||||
/** @var IManager */
|
||||
|
|
|
@ -36,6 +36,7 @@ use OCP\Share\Events\ShareCreatedEvent;
|
|||
use OCP\Share\IManager;
|
||||
use OCP\Share\IShare;
|
||||
|
||||
/** @template-implements IEventListener<ShareCreatedEvent> */
|
||||
class UserShareAcceptanceListener implements IEventListener {
|
||||
|
||||
/** @var IConfig */
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Util;
|
||||
|
||||
/** @template-implements IEventListener<LoadAdditionalScriptsEvent> */
|
||||
class LoadAdditionalScripts implements IEventListener {
|
||||
public function handle(Event $event): void {
|
||||
if (!($event instanceof LoadAdditionalScriptsEvent)) {
|
||||
|
|
|
@ -62,6 +62,7 @@ use OCP\Files\Node;
|
|||
use OCP\IUserSession;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/** @template-implements IEventListener<BeforeNodeCopiedEvent|BeforeNodeDeletedEvent|BeforeNodeRenamedEvent|BeforeNodeTouchedEvent|BeforeNodeWrittenEvent|NodeCopiedEvent|NodeCreatedEvent|NodeDeletedEvent|NodeRenamedEvent|NodeTouchedEvent|NodeWrittenEvent> */
|
||||
class FileEventsListener implements IEventListener {
|
||||
/**
|
||||
* @var array<int, array>
|
||||
|
|
|
@ -33,6 +33,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Util;
|
||||
|
||||
/** @template-implements IEventListener<LoadAdditionalScriptsEvent> */
|
||||
class LoadAdditionalListener implements IEventListener {
|
||||
public function handle(Event $event): void {
|
||||
if (!($event instanceof LoadAdditionalScriptsEvent)) {
|
||||
|
|
|
@ -33,6 +33,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Util;
|
||||
|
||||
/** @template-implements IEventListener<LoadSidebar> */
|
||||
class LoadSidebarListener implements IEventListener {
|
||||
public function handle(Event $event): void {
|
||||
if (!($event instanceof LoadSidebar)) {
|
||||
|
|
|
@ -30,6 +30,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\User\Events\UserDeletedEvent;
|
||||
|
||||
/** @template-implements IEventListener<UserDeletedEvent> */
|
||||
class UserDeletedListener implements IEventListener {
|
||||
|
||||
/** @var KnownUserService */
|
||||
|
|
|
@ -28,6 +28,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Group\Events\GroupDeletedEvent;
|
||||
|
||||
/** @template-implements IEventListener<GroupDeletedEvent> */
|
||||
class GroupRemovedListener implements IEventListener {
|
||||
|
||||
/** @var AuthorizedGroupService $authorizedGroupService */
|
||||
|
|
|
@ -34,6 +34,7 @@ use OCP\Group\Events\UserAddedEvent;
|
|||
use OCP\IUser;
|
||||
use OCP\IUserSession;
|
||||
|
||||
/** @template-implements IEventListener<UserAddedEvent> */
|
||||
class UserAddedToGroupActivityListener implements IEventListener {
|
||||
|
||||
/** @var Manager */
|
||||
|
|
|
@ -34,6 +34,7 @@ use OCP\Group\Events\UserRemovedEvent;
|
|||
use OCP\IUser;
|
||||
use OCP\IUserSession;
|
||||
|
||||
/** @template-implements IEventListener<UserRemovedEvent> */
|
||||
class UserRemovedFromGroupActivityListener implements IEventListener {
|
||||
|
||||
/** @var Manager */
|
||||
|
|
|
@ -32,6 +32,7 @@ use OCP\Config\BeforePreferenceSetEvent;
|
|||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/** @template-implements IEventListener<BeforePreferenceDeletedEvent|BeforePreferenceSetEvent> */
|
||||
class BeforePreferenceListener implements IEventListener {
|
||||
public function __construct(
|
||||
private IAppManager $appManager,
|
||||
|
|
|
@ -38,6 +38,7 @@ use OCP\IConfig;
|
|||
use OCP\IUserSession;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
/** @template-implements IEventListener<BeforeTemplateRenderedEvent> */
|
||||
class BeforeTemplateRenderedListener implements IEventListener {
|
||||
|
||||
private IInitialState $initialState;
|
||||
|
|
|
@ -32,6 +32,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/** @template-implements IEventListener<CodesGenerated> */
|
||||
class ActivityPublisher implements IEventListener {
|
||||
public function __construct(
|
||||
private IManager $activityManager,
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Notification\IManager;
|
||||
|
||||
/** @template-implements IEventListener<CodesGenerated> */
|
||||
class ClearNotifications implements IEventListener {
|
||||
|
||||
/** @var IManager */
|
||||
|
|
|
@ -33,6 +33,7 @@ use OCP\BackgroundJob\IJobList;
|
|||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/** @template-implements IEventListener<RegistryEvent> */
|
||||
class ProviderDisabled implements IEventListener {
|
||||
|
||||
/** @var IRegistry */
|
||||
|
|
|
@ -33,6 +33,7 @@ use OCP\BackgroundJob\IJobList;
|
|||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/** @template-implements IEventListener<RegistryEvent> */
|
||||
class ProviderEnabled implements IEventListener {
|
||||
|
||||
/** @var IRegistry */
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCP\Authentication\TwoFactorAuth\IRegistry;
|
|||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/** @template-implements IEventListener<CodesGenerated> */
|
||||
class RegistryUpdater implements IEventListener {
|
||||
|
||||
/** @var IRegistry */
|
||||
|
|
|
@ -30,6 +30,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\User\Events\UserDeletedEvent;
|
||||
|
||||
/** @template-implements IEventListener<UserDeletedEvent> */
|
||||
class UserDeleted implements IEventListener {
|
||||
|
||||
/** @var BackupCodeMapper */
|
||||
|
|
|
@ -37,6 +37,7 @@ use OCP\EventDispatcher\IEventListener;
|
|||
use OCP\IInitialStateService;
|
||||
use OCP\IUserSession;
|
||||
|
||||
/** @template-implements IEventListener<BeforeTemplateRenderedEvent> */
|
||||
class BeforeTemplateRenderedListener implements IEventListener {
|
||||
|
||||
/** @var ProfileManager */
|
||||
|
|
|
@ -34,6 +34,7 @@ use OCP\User\Events\UserDeletedEvent;
|
|||
* Class UserDeletedListener
|
||||
*
|
||||
* @package OCA\UserStatus\Listener
|
||||
* @template-implements IEventListener<UserDeletedEvent>
|
||||
*/
|
||||
class UserDeletedListener implements IEventListener {
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ use Psr\Log\LoggerInterface;
|
|||
* Class UserDeletedListener
|
||||
*
|
||||
* @package OCA\UserStatus\Listener
|
||||
* @template-implements IEventListener<UserLiveStatusEvent>
|
||||
*/
|
||||
class UserLiveStatusListener implements IEventListener {
|
||||
private UserStatusMapper $mapper;
|
||||
|
|
|
@ -31,9 +31,11 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\Template;
|
||||
use OCP\Util;
|
||||
use OCP\WorkflowEngine\Events\LoadSettingsScriptsEvent;
|
||||
use function class_exists;
|
||||
use function function_exists;
|
||||
|
||||
/** @template-implements IEventListener<LoadSettingsScriptsEvent> */
|
||||
class LoadAdditionalSettingsScriptsListener implements IEventListener {
|
||||
public function handle(Event $event): void {
|
||||
if (!function_exists('style')) {
|
||||
|
|
|
@ -33,6 +33,7 @@ use OCP\EventDispatcher\IEventListener;
|
|||
use OCP\IConfig;
|
||||
use OCP\Util;
|
||||
|
||||
/** @template-implements IEventListener<BeforeLoginTemplateRenderedEvent|BeforeTemplateRenderedEvent> */
|
||||
class BeforeTemplateRenderedListener implements IEventListener {
|
||||
public function __construct(private IConfig $config) {
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ use OCP\Files\Storage\IStorage;
|
|||
use OCP\User\Events\BeforeUserDeletedEvent;
|
||||
use OCP\User\Events\UserDeletedEvent;
|
||||
|
||||
/** @template-implements IEventListener<BeforeUserDeletedEvent|UserDeletedEvent> */
|
||||
class UserDeletedFilesCleanupListener implements IEventListener {
|
||||
/** @var array<string,IStorage> */
|
||||
private $homeStorageCache = [];
|
||||
|
|
|
@ -31,6 +31,7 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\User\Events\UserDeletedEvent;
|
||||
|
||||
/** @template-implements IEventListener<UserDeletedEvent> */
|
||||
class UserDeletedWebAuthnCleanupListener implements IEventListener {
|
||||
/** @var PublicKeyCredentialMapper */
|
||||
private $credentialMapper;
|
||||
|
|
|
@ -38,6 +38,7 @@ use OCP\IGroupManager;
|
|||
* Class that cache the relation Group ID -> Display name
|
||||
*
|
||||
* This saves fetching the group from the backend for "just" the display name
|
||||
* @template-implements IEventListener<GroupChangedEvent|GroupDeletedEvent>
|
||||
*/
|
||||
class DisplayNameCache implements IEventListener {
|
||||
private CappedMemoryCache $cache;
|
||||
|
|
|
@ -37,6 +37,7 @@ use OCP\User\Events\UserDeletedEvent;
|
|||
* This saves fetching the user from a user backend and later on fetching
|
||||
* their preferences. It's generally not an issue if this data is slightly
|
||||
* outdated.
|
||||
* @template-implements IEventListener<UserChangedEvent|UserDeletedEvent>
|
||||
*/
|
||||
class DisplayNameCache implements IEventListener {
|
||||
private array $cache = [];
|
||||
|
|
Загрузка…
Ссылка в новой задаче