Skip to content

Commit 3afae1d

Browse files
committed
fix(ContextChat): add suitable attributes to the public api
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent 5d7425b commit 3afae1d

5 files changed

Lines changed: 14 additions & 0 deletions

File tree

lib/public/ContextChat/ContentItem.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
namespace OCP\ContextChat;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @since 32.0.0
1416
*/
17+
#[Implementable(since: '32.0.0')]
1518
class ContentItem {
1619
/**
1720
* @param string $itemId

lib/public/ContextChat/Events/ContentProviderRegisterEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99

1010
namespace OCP\ContextChat\Events;
1111

12+
use OCP\AppFramework\Attribute\Listenable;
1213
use OCP\ContextChat\IContentManager;
1314
use OCP\ContextChat\IContentProvider;
1415
use OCP\EventDispatcher\Event;
1516

1617
/**
1718
* @since 32.0.0
1819
*/
20+
#[Listenable(since: '32.0.0')]
1921
class ContentProviderRegisterEvent extends Event {
2022
/**
2123
* @since 32.0.0

lib/public/ContextChat/IContentManager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
namespace OCP\ContextChat;
1111

12+
use OCP\AppFramework\Attribute\Consumable;
13+
1214
/**
1315
* @since 32.0.0
1416
*/
17+
#[Consumable(since: '32.0.0')]
1518
interface IContentManager {
1619
/**
1720
* Checks if the context chat app is enabled or not

lib/public/ContextChat/IContentProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99

1010
namespace OCP\ContextChat;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* This interface defines methods to implement a content provider
1416
* @since 32.0.0
1517
*/
18+
#[Implementable(since: '32.0.0')]
1619
interface IContentProvider {
1720
/**
1821
* The ID of the provider

lib/public/ContextChat/IContentProviderWithSearchTask.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99

1010
namespace OCP\ContextChat;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* This interface defines methods to implement a Context Chat content provider
1416
* with a search task and data description.
1517
* @since 35.0.0
1618
*/
19+
#[Implementable(since: '35.0.0')]
1720
interface IContentProviderWithSearchTask extends IContentProvider {
1821
/**
1922
* A short description about the kind of data provided by this provider.

0 commit comments

Comments
 (0)