summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-21 00:18:59 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-21 00:18:59 +0100
commite606c0eef47d4c39d1bdcdfa11447c08c6eab494 (patch)
treee9d7faa626f20b158373fe06b1f6f9f420adca76 /lib/private/Server.php
parentdb3a3bee377a3d4e7b5f54b863cbd8b7b2fa8607 (diff)
downloadnextcloud-server-e606c0eef47d4c39d1bdcdfa11447c08c6eab494.tar.gz
nextcloud-server-e606c0eef47d4c39d1bdcdfa11447c08c6eab494.zip
Allow View to be used via DI
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 360d682e0dd..39524957166 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -290,6 +290,9 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerAlias(IActionFactory::class, ActionFactory::class);
+ $this->registerService(View::class, function (Server $c) {
+ return new View();
+ }, false);
$this->registerService(IPreview::class, function (ContainerInterface $c) {
return new PreviewManager(