]> source.dussan.org Git - nextcloud-server.git/commitdiff
Admin AI settings: Use ContainerInterface instead of IServerContainer
authorMarcel Klehr <mklehr@gmx.net>
Fri, 28 Jul 2023 14:25:42 +0000 (16:25 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 9 Aug 2023 08:28:00 +0000 (10:28 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 7adb2ce819f556ffe6297412f7ef390089240fc8)

apps/settings/lib/Settings/Admin/ArtificialIntelligence.php

index ab95358683e0364c6b6b893f435c0fabac848e69..eb1983690a5a1f12d090d3e9ade47fac6d519104 100644 (file)
@@ -29,7 +29,6 @@ use OCP\AppFramework\Http\TemplateResponse;
 use OCP\AppFramework\Services\IInitialState;
 use OCP\IConfig;
 use OCP\IL10N;
-use OCP\IServerContainer;
 use OCP\Settings\IDelegatedSettings;
 use OCP\SpeechToText\ISpeechToTextManager;
 use OCP\TextProcessing\IManager;
@@ -37,6 +36,7 @@ use OCP\TextProcessing\IProvider;
 use OCP\TextProcessing\ITaskType;
 use OCP\Translation\ITranslationManager;
 use Psr\Container\ContainerExceptionInterface;
+use Psr\Container\ContainerInterface;
 use Psr\Container\NotFoundExceptionInterface;
 
 class ArtificialIntelligence implements IDelegatedSettings {
@@ -47,7 +47,7 @@ class ArtificialIntelligence implements IDelegatedSettings {
                private ITranslationManager $translationManager,
                private ISpeechToTextManager $sttManager,
                private IManager $textProcessingManager,
-               private IServerContainer $container,
+               private ContainerInterface $container,
        ) {
        }