diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-21 00:18:59 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-11-21 00:18:59 +0100 |
commit | e606c0eef47d4c39d1bdcdfa11447c08c6eab494 (patch) | |
tree | e9d7faa626f20b158373fe06b1f6f9f420adca76 /lib/private/Server.php | |
parent | db3a3bee377a3d4e7b5f54b863cbd8b7b2fa8607 (diff) | |
download | nextcloud-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.php | 3 |
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( |