summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/apps.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/provisioning_api/lib/apps.php')
-rw-r--r--apps/provisioning_api/lib/apps.php10
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'];