Migrate away from OC_App and toward IAppManager.#44025
Conversation
173f7f9 to
f281499
Compare
01b858c to
babdd5a
Compare
81bc004 to
3083a2e
Compare
ChristophWurst
left a comment
There was a problem hiding this comment.
To avoid some kaboom we might want to merge this after the 29 branch-off
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…lled Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Also fixed AppTest Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3083a2e to
1b5a0c3
Compare
|
Rebased and fixed conflicts |
|
|
||
| $this->installedAppsCache[$appId] = 'yes'; | ||
| $this->appConfig->setValue($appId, 'enabled', 'yes'); | ||
| $this->getAppConfig()->setValue($appId, 'enabled', 'yes'); |
Check notice
Code scanning / Psalm
DeprecatedMethod
|
|
||
| $this->installedAppsCache[$appId] = json_encode($groupIds); | ||
| $this->appConfig->setValue($appId, 'enabled', json_encode($groupIds)); | ||
| $this->getAppConfig()->setValue($appId, 'enabled', json_encode($groupIds)); |
Check notice
Code scanning / Psalm
DeprecatedMethod
|
|
||
| if ($automaticDisabled) { | ||
| $previousSetting = $this->appConfig->getValue($appId, 'enabled', 'yes'); | ||
| $previousSetting = $this->getAppConfig()->getValue($appId, 'enabled', 'yes'); |
Check notice
Code scanning / Psalm
DeprecatedMethod
|
|
||
| unset($this->installedAppsCache[$appId]); | ||
| $this->appConfig->setValue($appId, 'enabled', 'no'); | ||
| $this->getAppConfig()->setValue($appId, 'enabled', 'no'); |
Check notice
Code scanning / Psalm
DeprecatedMethod
| foreach ($apps as $appId) { | ||
| $appInfo = $this->getAppInfo($appId); | ||
| $appDbVersion = $this->appConfig->getValue($appId, 'installed_version'); | ||
| $appDbVersion = $this->getAppConfig()->getValue($appId, 'installed_version'); |
Check notice
Code scanning / Psalm
DeprecatedMethod
…ones Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
@nickvergessen Reverted both calls. We’ll need later to add a replacement for getAllApps. But the |
Circular dependencies in 99% of the cases |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Yes, it was urlgenerator injection causing trouble as suspected. At first I thought it was not because I had missed one place it was pulled from. |
|
Related to open issue: #8505 :) |
Summary
Migrate away from OC_App and toward IAppManager.
Checklist