summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Template
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-01-28 14:08:38 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-10 09:44:24 +0100
commitaabd73912ec278eb082d7f47d88f350ac523d0c7 (patch)
treeb7a26bf92f646b8d119b3afe69a3953b8d4c7f4f /lib/private/Files/Template
parentf96f0f6cad011d73846cdf98ed8b0d35b180a2ef (diff)
downloadnextcloud-server-aabd73912ec278eb082d7f47d88f350ac523d0c7.tar.gz
nextcloud-server-aabd73912ec278eb082d7f47d88f350ac523d0c7.zip
Type the service registration
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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;
}