summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-05-25 14:56:54 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-06 11:40:09 +0200
commitcd60e5b63406d4f23a8c04491cbdc57b47b972cb (patch)
treee5f5f74b3825e0421ed5d70d280a804f6a9294b4 /lib
parent923e8598b033ff1d9fc78b357e4d6390897630c4 (diff)
downloadnextcloud-server-cd60e5b63406d4f23a8c04491cbdc57b47b972cb.tar.gz
nextcloud-server-cd60e5b63406d4f23a8c04491cbdc57b47b972cb.zip
Move logic to app management mixin
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/App/AppStore/Manager.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/App/AppStore/Manager.php b/lib/private/App/AppStore/Manager.php
index 1c7f09a817e..4498918da70 100644
--- a/lib/private/App/AppStore/Manager.php
+++ b/lib/private/App/AppStore/Manager.php
@@ -29,10 +29,13 @@ use OC\App\AppStore\Fetcher\AppFetcher;
class Manager {
public function __construct(AppFetcher $appFetcher) {
- $this->apps = $appFetcher->get();
+ $apps = $appFetcher->get();
+ foreach ($apps as $app) {
+ $this->apps[$app['id']] = $app;
+ }
}
public function getApp(string $appId) {
- return $this->apps;
+ return $this->apps[$appId];
}
} \ No newline at end of file