aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-10-20 14:56:24 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-10-20 14:56:24 +0200
commitcee5aa84f02de18084067a2e33e8d252f2362be4 (patch)
tree3b13ced976ef1fe1979027ef69ec69402f4198fd /lib/public/AppFramework
parent9ee72633cf78a777756d2d4afe707f2539521ccc (diff)
downloadnextcloud-server-cee5aa84f02de18084067a2e33e8d252f2362be4.tar.gz
nextcloud-server-cee5aa84f02de18084067a2e33e8d252f2362be4.zip
fix(Text2Image): Fix psalm errors
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r--lib/public/AppFramework/Bootstrap/IRegistrationContext.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
index c34cec38eb1..b956c308c01 100644
--- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
+++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
@@ -38,6 +38,7 @@ use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Template\ICustomTemplateProvider;
use OCP\IContainer;
use OCP\TextProcessing\IProvider as ITextProcessingProvider;
+use OCP\TextToImage\IProvider as ITextToImageProvider;
use OCP\Notification\INotifier;
use OCP\Preview\IProviderV2;
use OCP\SpeechToText\ISpeechToTextProvider;
@@ -231,6 +232,16 @@ interface IRegistrationContext {
public function registerTextProcessingProvider(string $providerClass): void;
/**
+ * Register a custom text2image provider class that provides the possibility to generate images
+ * through the OCP\TextToImage APIs
+ *
+ * @param string $providerClass
+ * @psalm-param class-string<ITextToImageProvider> $providerClass
+ * @since 27.1.0
+ */
+ public function registerTextToImageProvider(string $providerClass): void;
+
+ /**
* Register a custom template provider class that is able to inject custom templates
* in addition to the user defined ones
*