diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-11-07 14:26:12 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-11-10 13:52:52 +0100 |
commit | 43eb375ace5c62201e2323b39a5f400b2bdc97b7 (patch) | |
tree | 9794ee71a7978fb31316da41935c448fea92601a /lib/private/server.php | |
parent | 2023878d537374b47494eb8ce44d3757b3692626 (diff) | |
download | nextcloud-server-43eb375ace5c62201e2323b39a5f400b2bdc97b7.tar.gz nextcloud-server-43eb375ace5c62201e2323b39a5f400b2bdc97b7.zip |
Add \OC\App\Manager to handle enabling/disabling apps
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index f43613e8188..c413ee8bf6d 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -237,6 +237,12 @@ class Server extends SimpleContainer implements IServerContainer { /** @var Server $c */ return new TempManager(get_temp_dir(), $c->getLogger()); }); + $this->registerService('AppManager', function(Server $c) { + $userSession = $c->getUserSession(); + $appConfig = $c->getAppConfig(); + $groupManager = $c->getGroupManager(); + return new \OC\App\AppManager($userSession, $appConfig, $groupManager); + }); } /** @@ -616,4 +622,13 @@ class Server extends SimpleContainer implements IServerContainer { function getTempManager() { return $this->query('TempManager'); } + + /** + * Get the app manager + * + * @return \OCP\App\IAppManager + */ + function getAppManager() { + return $this->query('AppManager'); + } } |