fix(Text2Image): Fix psalm errors

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-10-20 14:56:24 +02:00
parent 9ee72633cf
commit cee5aa84f0
2 changed files with 12 additions and 0 deletions

View file

@ -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;
@ -230,6 +231,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

View file

@ -66,6 +66,7 @@ interface IManager {
* @throws Exception if there was a problem inserting the task into the database
* @throws PreConditionNotMetException if no provider is registered
* @throws RuntimeException If the task run fail
* @since 28.0.0
*/
public function runOrScheduleTask(Task $task) : void;