diff --git a/lib/public/ContextChat/ContentItem.php b/lib/public/ContextChat/ContentItem.php index 2b5289ba3506b..8ddaab3b354ac 100644 --- a/lib/public/ContextChat/ContentItem.php +++ b/lib/public/ContextChat/ContentItem.php @@ -9,9 +9,12 @@ namespace OCP\ContextChat; +use OCP\AppFramework\Attribute\Implementable; + /** * @since 32.0.0 */ +#[Implementable(since: '32.0.0')] class ContentItem { /** * @param string $itemId diff --git a/lib/public/ContextChat/Events/ContentProviderRegisterEvent.php b/lib/public/ContextChat/Events/ContentProviderRegisterEvent.php index 48e8c2e3ae95a..114a4984a2407 100644 --- a/lib/public/ContextChat/Events/ContentProviderRegisterEvent.php +++ b/lib/public/ContextChat/Events/ContentProviderRegisterEvent.php @@ -9,6 +9,7 @@ namespace OCP\ContextChat\Events; +use OCP\AppFramework\Attribute\Listenable; use OCP\ContextChat\IContentManager; use OCP\ContextChat\IContentProvider; use OCP\EventDispatcher\Event; @@ -16,6 +17,7 @@ /** * @since 32.0.0 */ +#[Listenable(since: '32.0.0')] class ContentProviderRegisterEvent extends Event { /** * @since 32.0.0 diff --git a/lib/public/ContextChat/IContentManager.php b/lib/public/ContextChat/IContentManager.php index 54e4880929115..a6c4ec760631f 100644 --- a/lib/public/ContextChat/IContentManager.php +++ b/lib/public/ContextChat/IContentManager.php @@ -9,9 +9,12 @@ namespace OCP\ContextChat; +use OCP\AppFramework\Attribute\Consumable; + /** * @since 32.0.0 */ +#[Consumable(since: '32.0.0')] interface IContentManager { /** * Checks if the context chat app is enabled or not diff --git a/lib/public/ContextChat/IContentProvider.php b/lib/public/ContextChat/IContentProvider.php index b0c736e3c8855..2c12d2ec8119c 100644 --- a/lib/public/ContextChat/IContentProvider.php +++ b/lib/public/ContextChat/IContentProvider.php @@ -9,10 +9,13 @@ namespace OCP\ContextChat; +use OCP\AppFramework\Attribute\Implementable; + /** * This interface defines methods to implement a content provider * @since 32.0.0 */ +#[Implementable(since: '32.0.0')] interface IContentProvider { /** * The ID of the provider diff --git a/lib/public/ContextChat/IContentProviderWithSearchTask.php b/lib/public/ContextChat/IContentProviderWithSearchTask.php index 28faafefe82d3..e5f746290067c 100644 --- a/lib/public/ContextChat/IContentProviderWithSearchTask.php +++ b/lib/public/ContextChat/IContentProviderWithSearchTask.php @@ -9,11 +9,14 @@ namespace OCP\ContextChat; +use OCP\AppFramework\Attribute\Implementable; + /** * This interface defines methods to implement a Context Chat content provider * with a search task and data description. * @since 35.0.0 */ +#[Implementable(since: '35.0.0')] interface IContentProviderWithSearchTask extends IContentProvider { /** * A short description about the kind of data provided by this provider.