nextcloud / context_chat

Chat with your documents
GNU Affero General Public License v3.0
6 stars 0 forks source link

Provider registration not possible #39

Closed Rello closed 2 weeks ago

Rello commented 1 month ago

Which version of context_chat are you using?

current

Which version of Nextcloud are you using?

v28

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

No response

Describe the Bug

https://github.com/nextcloud/context_chat/blob/main/doc/Implementing_a_provider.md

Registering a provider is not possible.

use OCA\ContextChat\Public\ContentManager;
...
$contentManager = \OCP\Server::get(ContentManager::class);
$contentManager->registerContentProvider(ContentProvider::class);

results in a Error during app service registration: Could not resolve OCA\ContextChat\Public\ContentManager! Class "OCA\ContextChat\Public\ContentManager" does not exist"

after discussion with @marcelklehr this should be related to the app sequence. Current app used is "Analytics" an this does not work as part of the public function register(IRegistrationContext $context): void process

Expected Behavior

use an Event?

To Reproduce

...