From 98441dff77ba825d40eed4069e913d5ac798591c Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg <3902676+kesselb@users.noreply.github.com> Date: Thu, 29 Oct 2026 21:38:51 +0000 Subject: [PATCH] chore(ocp): mark events as Listenable instead of Consumable Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Daniel Kesselberg <3902676+kesselb@users.noreply.github.com> --- .../Collaboration/AutoComplete/AutoCompleteFilterEvent.php | 4 ++-- lib/public/Comments/CommentsEntityEvent.php | 4 ++-- lib/public/Comments/CommentsEvent.php | 4 ++-- lib/public/Comments/Events/BeforeCommentUpdatedEvent.php | 4 ++-- lib/public/Comments/Events/CommentAddedEvent.php | 4 ++-- lib/public/Comments/Events/CommentDeletedEvent.php | 4 ++-- lib/public/Comments/Events/CommentUpdatedEvent.php | 4 ++-- lib/public/Files/ObjectStore/Events/BucketCreatedEvent.php | 4 ++-- lib/public/Interaction/RestrictInteractionEvent.php | 4 ++-- .../Share/ShareReview/Events/ShareReviewAccessCheckEvent.php | 4 ++-- lib/public/SystemTag/Events/AbstractTagEvent.php | 4 ++-- lib/public/SystemTag/Events/TagCreatedEvent.php | 4 ++-- lib/public/SystemTag/Events/TagDeletedEvent.php | 4 ++-- lib/public/SystemTag/Events/TagUpdatedEvent.php | 4 ++-- lib/public/User/Events/UserEnumerationFilterEvent.php | 2 -- 15 files changed, 28 insertions(+), 30 deletions(-) diff --git a/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php b/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php index e4cb17a1b5071..b546f24dc83cc 100644 --- a/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php +++ b/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php @@ -9,7 +9,7 @@ namespace OCP\Collaboration\AutoComplete; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\EventDispatcher\Event; /** @@ -21,7 +21,7 @@ * @since 28.0.0 * @template T of array */ -#[Consumable(since: '28.0.0')] +#[Listenable(since: '28.0.0')] class AutoCompleteFilterEvent extends Event { /** * @since 28.0.0 diff --git a/lib/public/Comments/CommentsEntityEvent.php b/lib/public/Comments/CommentsEntityEvent.php index 86553fe4b557d..541e32e943546 100644 --- a/lib/public/Comments/CommentsEntityEvent.php +++ b/lib/public/Comments/CommentsEntityEvent.php @@ -8,7 +8,7 @@ namespace OCP\Comments; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\EventDispatcher\Event; /** @@ -17,7 +17,7 @@ * @since 9.1.0 * @since 28.0.0 Dispatched as a typed event */ -#[Consumable(since: '9.1.0')] +#[Listenable(since: '9.1.0')] class CommentsEntityEvent extends Event { /** * @since 9.1.0 diff --git a/lib/public/Comments/CommentsEvent.php b/lib/public/Comments/CommentsEvent.php index 77b43f3f53c1b..fb251ede3d504 100644 --- a/lib/public/Comments/CommentsEvent.php +++ b/lib/public/Comments/CommentsEvent.php @@ -8,7 +8,7 @@ namespace OCP\Comments; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IWebhookCompatibleEvent; @@ -19,7 +19,7 @@ * * In the future, once the deprecated methods are removed, this class will be abstract. */ -#[Consumable(since: '9.0.0')] +#[Listenable(since: '9.0.0')] class CommentsEvent extends Event implements IWebhookCompatibleEvent { /** * @since 11.0.0 diff --git a/lib/public/Comments/Events/BeforeCommentUpdatedEvent.php b/lib/public/Comments/Events/BeforeCommentUpdatedEvent.php index 2adf360dff111..851065e0c7c51 100644 --- a/lib/public/Comments/Events/BeforeCommentUpdatedEvent.php +++ b/lib/public/Comments/Events/BeforeCommentUpdatedEvent.php @@ -8,7 +8,7 @@ namespace OCP\Comments\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\Comments\CommentsEvent; use OCP\Comments\IComment; @@ -17,7 +17,7 @@ * * @since 33.0.0 */ -#[Consumable(since: '33.0.0')] +#[Listenable(since: '33.0.0')] final class BeforeCommentUpdatedEvent extends CommentsEvent { /** * CommentEvent constructor. diff --git a/lib/public/Comments/Events/CommentAddedEvent.php b/lib/public/Comments/Events/CommentAddedEvent.php index 1ee6bdd7cddb3..6b04ca3d73ec7 100644 --- a/lib/public/Comments/Events/CommentAddedEvent.php +++ b/lib/public/Comments/Events/CommentAddedEvent.php @@ -8,7 +8,7 @@ namespace OCP\Comments\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\Comments\CommentsEvent; use OCP\Comments\IComment; @@ -17,7 +17,7 @@ * * @since 33.0.0 */ -#[Consumable(since: '33.0.0')] +#[Listenable(since: '33.0.0')] final class CommentAddedEvent extends CommentsEvent { /** * CommentAddedEvent constructor. diff --git a/lib/public/Comments/Events/CommentDeletedEvent.php b/lib/public/Comments/Events/CommentDeletedEvent.php index 0423579a3819d..c26af0e407d60 100644 --- a/lib/public/Comments/Events/CommentDeletedEvent.php +++ b/lib/public/Comments/Events/CommentDeletedEvent.php @@ -8,7 +8,7 @@ namespace OCP\Comments\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\Comments\CommentsEvent; use OCP\Comments\IComment; @@ -17,7 +17,7 @@ * * @since 33.0.0 */ -#[Consumable(since: '33.0.0')] +#[Listenable(since: '33.0.0')] final class CommentDeletedEvent extends CommentsEvent { /** * CommentRemovedEvent constructor. diff --git a/lib/public/Comments/Events/CommentUpdatedEvent.php b/lib/public/Comments/Events/CommentUpdatedEvent.php index b22274730515c..65087785380e0 100644 --- a/lib/public/Comments/Events/CommentUpdatedEvent.php +++ b/lib/public/Comments/Events/CommentUpdatedEvent.php @@ -8,7 +8,7 @@ namespace OCP\Comments\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\Comments\CommentsEvent; use OCP\Comments\IComment; @@ -17,7 +17,7 @@ * * @since 33.0.0 */ -#[Consumable(since: '33.0.0')] +#[Listenable(since: '33.0.0')] final class CommentUpdatedEvent extends CommentsEvent { /** * CommentUpdatedEvent constructor. diff --git a/lib/public/Files/ObjectStore/Events/BucketCreatedEvent.php b/lib/public/Files/ObjectStore/Events/BucketCreatedEvent.php index 587b8001268e8..e7e15b7107d5b 100644 --- a/lib/public/Files/ObjectStore/Events/BucketCreatedEvent.php +++ b/lib/public/Files/ObjectStore/Events/BucketCreatedEvent.php @@ -9,13 +9,13 @@ namespace OCP\Files\ObjectStore\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\EventDispatcher\Event; /** * @since 33.0.0 */ -#[Consumable(since: '33.0.0')] +#[Listenable(since: '33.0.0')] class BucketCreatedEvent extends Event { /** diff --git a/lib/public/Interaction/RestrictInteractionEvent.php b/lib/public/Interaction/RestrictInteractionEvent.php index db97d33167cb9..2bc7e19220126 100644 --- a/lib/public/Interaction/RestrictInteractionEvent.php +++ b/lib/public/Interaction/RestrictInteractionEvent.php @@ -9,7 +9,7 @@ namespace OCP\Interaction; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventDispatcher; use OCP\IUser; @@ -28,7 +28,7 @@ * * @since 34.0.2 */ -#[Consumable(since: '34.0.2')] +#[Listenable(since: '34.0.2')] final class RestrictInteractionEvent extends Event { /** * @since 34.0.2 diff --git a/lib/public/Share/ShareReview/Events/ShareReviewAccessCheckEvent.php b/lib/public/Share/ShareReview/Events/ShareReviewAccessCheckEvent.php index 38f998ab156bb..af5413bd2aaf3 100644 --- a/lib/public/Share/ShareReview/Events/ShareReviewAccessCheckEvent.php +++ b/lib/public/Share/ShareReview/Events/ShareReviewAccessCheckEvent.php @@ -9,7 +9,7 @@ namespace OCP\Share\ShareReview\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\EventDispatcher\Event; /** @@ -67,7 +67,7 @@ * * @since 34.0.2 */ -#[Consumable(since: '34.0.2')] +#[Listenable(since: '34.0.2')] class ShareReviewAccessCheckEvent extends Event { private bool $handled = false; diff --git a/lib/public/SystemTag/Events/AbstractTagEvent.php b/lib/public/SystemTag/Events/AbstractTagEvent.php index 9d08b4ee32951..373ccb50c1220 100644 --- a/lib/public/SystemTag/Events/AbstractTagEvent.php +++ b/lib/public/SystemTag/Events/AbstractTagEvent.php @@ -9,7 +9,7 @@ namespace OCP\SystemTag\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\EventDispatcher\Event; use OCP\SystemTag\ISystemTag; @@ -18,7 +18,7 @@ * * @since 35.0.0 */ -#[Consumable(since: '35.0.0')] +#[Listenable(since: '35.0.0')] abstract class AbstractTagEvent extends Event { /** * AbstractTagEvent constructor diff --git a/lib/public/SystemTag/Events/TagCreatedEvent.php b/lib/public/SystemTag/Events/TagCreatedEvent.php index 2a6395e34129b..c791a116a7f29 100644 --- a/lib/public/SystemTag/Events/TagCreatedEvent.php +++ b/lib/public/SystemTag/Events/TagCreatedEvent.php @@ -9,13 +9,13 @@ namespace OCP\SystemTag\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; /** * Event triggered when creating a new tag. * * @since 35.0.0 */ -#[Consumable(since: '35.0.0')] +#[Listenable(since: '35.0.0')] final class TagCreatedEvent extends AbstractTagEvent { } diff --git a/lib/public/SystemTag/Events/TagDeletedEvent.php b/lib/public/SystemTag/Events/TagDeletedEvent.php index a42fba892570d..3c04e5e8da653 100644 --- a/lib/public/SystemTag/Events/TagDeletedEvent.php +++ b/lib/public/SystemTag/Events/TagDeletedEvent.php @@ -9,13 +9,13 @@ namespace OCP\SystemTag\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; /** * Event triggered when deleting a new tag. * * @since 35.0.0 */ -#[Consumable(since: '35.0.0')] +#[Listenable(since: '35.0.0')] final class TagDeletedEvent extends AbstractTagEvent { } diff --git a/lib/public/SystemTag/Events/TagUpdatedEvent.php b/lib/public/SystemTag/Events/TagUpdatedEvent.php index 1c7a6dedb3c8b..c3ea8fcd4d106 100644 --- a/lib/public/SystemTag/Events/TagUpdatedEvent.php +++ b/lib/public/SystemTag/Events/TagUpdatedEvent.php @@ -10,7 +10,7 @@ namespace OCP\SystemTag\Events; -use OCP\AppFramework\Attribute\Consumable; +use OCP\AppFramework\Attribute\Listenable; use OCP\SystemTag\ISystemTag; /** @@ -18,7 +18,7 @@ * * @since 35.0.0 */ -#[Consumable(since: '35.0.0')] +#[Listenable(since: '35.0.0')] final class TagUpdatedEvent extends AbstractTagEvent { /** * TagUpdatedEvent constructor diff --git a/lib/public/User/Events/UserEnumerationFilterEvent.php b/lib/public/User/Events/UserEnumerationFilterEvent.php index f26312180d2a3..5e459b0f43259 100644 --- a/lib/public/User/Events/UserEnumerationFilterEvent.php +++ b/lib/public/User/Events/UserEnumerationFilterEvent.php @@ -9,7 +9,6 @@ namespace OCP\User\Events; -use OCP\AppFramework\Attribute\Consumable; use OCP\AppFramework\Attribute\Listenable; use OCP\EventDispatcher\Event; @@ -21,7 +20,6 @@ * * @since 31.0.14 */ -#[Consumable(since: '31.0.14')] #[Listenable(since: '31.0.14')] class UserEnumerationFilterEvent extends Event { /** @var list $initialUsers */