Skip to content

Commit

Permalink
Return providers as indexed array
Browse files Browse the repository at this point in the history
  • Loading branch information
MB-Finski authored Dec 19, 2023
1 parent 6fa377e commit cf24acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/TextToImage/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getProviders(): array {
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,
Expand Down

0 comments on commit cf24acd

Please sign in to comment.