summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Template
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/Template')
-rw-r--r--lib/private/Files/Template/TemplateManager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Files/Template/TemplateManager.php b/lib/private/Files/Template/TemplateManager.php
index 44e1b10fa35..33d42bc9c42 100644
--- a/lib/private/Files/Template/TemplateManager.php
+++ b/lib/private/Files/Template/TemplateManager.php
@@ -109,7 +109,8 @@ class TemplateManager implements ITemplateManager {
$this->providers = [];
foreach ($context->getTemplateProviders() as $provider) {
- $this->providers[$provider['class']] = $this->serverContainer->get($provider['class']);
+ $class = $provider->getService();
+ $this->providers[$class] = $this->serverContainer->get($class);
}
return $this->providers;
}