diff options
author | Sami Finnilä <64466176+MB-Finski@users.noreply.github.com> | 2023-12-19 14:29:49 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-01-10 14:37:24 +0100 |
commit | 283952e85710ee746069f05fce50f30cf894a9a8 (patch) | |
tree | 03e7cec8849de6ae04b89fc77b5e92dd9209437f /lib | |
parent | 9280e023b1520608da333103bfcdfb899391515a (diff) | |
download | nextcloud-server-283952e85710ee746069f05fce50f30cf894a9a8.tar.gz nextcloud-server-283952e85710ee746069f05fce50f30cf894a9a8.zip |
Return providers as indexed array
Signed-off-by: MB-Finski <sami.finnila@gmail.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TextToImage/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TextToImage/Manager.php b/lib/private/TextToImage/Manager.php index 86212709c42..30336e4e0dc 100644 --- a/lib/private/TextToImage/Manager.php +++ b/lib/private/TextToImage/Manager.php @@ -83,7 +83,7 @@ class Manager implements IManager { foreach ($context->getTextToImageProviders() as $providerServiceRegistration) { $class = $providerServiceRegistration->getService(); try { - $this->providers[$class] = $this->serverContainer->get($class); + $this->providers[] = $this->serverContainer->get($class); } catch (Throwable $e) { $this->logger->error('Failed to load Text to image provider ' . $class, [ 'exception' => $e, |