diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-01-06 00:03:08 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-06 11:40:22 +0100 |
commit | 88c7face07722d03806c5b89a41a3ab90bbd9718 (patch) | |
tree | e95003decc4033538a188050b8a2cf7cf50db34c /apps/provisioning_api/lib | |
parent | c77917f48c6c6d7110c7380a398e25beb906f50f (diff) | |
download | nextcloud-server-88c7face07722d03806c5b89a41a3ab90bbd9718.tar.gz nextcloud-server-88c7face07722d03806c5b89a41a3ab90bbd9718.zip |
Inject OCSClient
Fixes https://github.com/owncloud/core/issues/21451
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r-- | apps/provisioning_api/lib/apps.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/provisioning_api/lib/apps.php b/apps/provisioning_api/lib/apps.php index e0fa63cca34..2a3fd414d39 100644 --- a/apps/provisioning_api/lib/apps.php +++ b/apps/provisioning_api/lib/apps.php @@ -25,19 +25,23 @@ namespace OCA\Provisioning_API; +use OC\OCSClient; use \OC_OCS_Result; use \OC_App; class Apps { - /** @var \OCP\App\IAppManager */ private $appManager; + /** @var OCSClient */ + private $ocsClient; /** * @param \OCP\App\IAppManager $appManager */ - public function __construct(\OCP\App\IAppManager $appManager) { + public function __construct(\OCP\App\IAppManager $appManager, + OCSClient $ocsClient) { $this->appManager = $appManager; + $this->ocsClient = $ocsClient; } /** @@ -45,7 +49,7 @@ class Apps { * @return OC_OCS_Result */ public function getApps($parameters) { - $apps = OC_App::listAllApps(); + $apps = OC_App::listAllApps(false, true, $this->ocsClient); $list = []; foreach($apps as $app) { $list[] = $app['id']; |