summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-12-08 17:43:46 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-12-22 12:34:41 +0100
commitaa8755bd4b2d5a949a35f1308eefa6d00140a1a7 (patch)
tree09153939dd285480a1225290d7bde664e41826fa /lib/private/Server.php
parent7f8d22e7102293d96c365b380bf1845ff2de6b71 (diff)
downloadnextcloud-server-aa8755bd4b2d5a949a35f1308eefa6d00140a1a7.tar.gz
nextcloud-server-aa8755bd4b2d5a949a35f1308eefa6d00140a1a7.zip
Add navigation via info.xml (#26785)
* Read navigation information from info.xml * Load files navigation elements from info.xml * Add comment about ignoring the exception Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 969e5a25b9b..9d411e5ef9b 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -315,8 +315,12 @@ class Server extends ServerContainer implements IServerContainer {
return new \OC\Authentication\TwoFactorAuth\Manager($c->getAppManager(), $c->getSession(), $c->getConfig());
});
- $this->registerService('NavigationManager', function ($c) {
- return new \OC\NavigationManager();
+ $this->registerService('NavigationManager', function (Server $c) {
+ return new \OC\NavigationManager($c->getAppManager(),
+ $c->getURLGenerator(),
+ $c->getL10NFactory(),
+ $c->getUserSession(),
+ $c->getGroupManager());
});
$this->registerService('AllConfig', function (Server $c) {
return new \OC\AllConfig(