mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(Text2Image): Fix psalm errors
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
9ee72633cf
commit
cee5aa84f0
2 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue