diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-12-08 17:43:46 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-12-22 12:34:41 +0100 |
commit | aa8755bd4b2d5a949a35f1308eefa6d00140a1a7 (patch) | |
tree | 09153939dd285480a1225290d7bde664e41826fa /lib/private/Server.php | |
parent | 7f8d22e7102293d96c365b380bf1845ff2de6b71 (diff) | |
download | nextcloud-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.php | 8 |
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( |