Skip to content

Commit 8904bf6

Browse files
committed
Return providers as indexed array
Signed-off-by: MB-Finski <sami.finnila@gmail.com>
1 parent 6fa377e commit 8904bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/TextToImage/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function getProviders(): array {
8383
foreach ($context->getTextToImageProviders() as $providerServiceRegistration) {
8484
$class = $providerServiceRegistration->getService();
8585
try {
86-
$this->providers[$class] = $this->serverContainer->get($class);
86+
$this->providers[] = $this->serverContainer->get($class);
8787
} catch (Throwable $e) {
8888
$this->logger->error('Failed to load Text to image provider ' . $class, [
8989
'exception' => $e,

0 commit comments

Comments
 (0)