aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/App/AppManager.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: Remove support for app.php loadingCôme Chilliet2025-04-141-46/+5
| | | | | | | | | It has been deprecated for a long time, and the last known active application to use it (user_saml) is now migrated the modern API. Presence of the file is still checked in order to log an error. This behavior may be removed as well in a few versions. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Move getAppInstalledVersions to AppConfig so that it can be used earlierfix/add-getappversions-replacementCôme Chilliet2025-03-251-8/+1
| | | | | | Call it from OC_App to make sure there is only one request to DB. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Add a replacement for OC_App::getAppVersions is IAppManagerCôme Chilliet2025-03-251-0/+16
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Also remove digits at the start and underscore on both ends of appidfix/fix-appmanager-cleanappidCôme Chilliet2025-02-131-1/+1
| | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* fix: Only keep allowed characters in appid, and flag the method as escapingCôme Chilliet2025-02-131-2/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Improve naming of methods and properties in AppManagerCôme Chilliet2025-02-131-21/+23
| | | | | | Remove all references to installed apps where it’s about enabled apps Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(ocp): Deprecate getInstalledApps and replace with clearer method nameCôme Chilliet2025-02-131-1/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(ocp): Deprecate isInstalled and add isEnabledForAnyone insteadCôme Chilliet2025-02-131-3/+5
| | | | | | The method name was really confusing Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Correctly return app id and app version for `core` styles and imagesFerdinand Thiessen2025-01-241-2/+8
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(apps-store): Remove apps from force-enabled state when uninstalledfix/app-store-remove-force-enableFerdinand Thiessen2024-11-181-15/+19
| | | | | | | | | If an app is force-enabled and then uninstalled the force-enabled state was kept. This is now removed, so when the app should be re-installed the compatibility should be reevaluated. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(appmanager): Fix tainted file path when loading appinfosbugfix/noid/fix-tainted-file-appinfoJoas Schilling2024-10-141-16/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Replace OC_App::getAllApps with a method in AppManagerCôme Chilliet2024-09-131-0/+31
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Migrate cleanAppId and getAppPath calls to IAppManager from OC_AppCôme Chilliet2024-09-131-3/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(AppManager): Deprecated default apps handlingprovokateurin2024-09-091-46/+36
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat: hide caldav server settings if no app uses the caldav backendRichard Steinmetz2024-07-161-0/+12
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(profiler): Remove bogus profiler event startCôme Chilliet2024-06-271-4/+2
| | | | | | | This fixes profiler event graph by removing an event start which had no matching end() call. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(AppManager): Name correct method in error + show error stringJosh2024-06-091-2/+6
| | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-35/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Lazy load IURLGenerator from AppManager to avoid installation crashCôme Chilliet2024-04-221-2/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Make sure that AppManager can be built before Nextcloud is installedCôme Chilliet2024-04-221-8/+20
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(AppManager): Allow to query dark **or** bright iconFerdinand Thiessen2024-03-081-2/+2
| | | | | | The navigation needs the bright icon, while the notifications and activity need a dark icon. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(AppManager): Provide `getAppIcon` functionFerdinand Thiessen2024-03-071-0/+16
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Refactor lib/private/AppHamid Dehnavi2024-02-231-22/+9
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* fix(apps): Fix type information of app managerJoas Schilling2024-01-231-6/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-7/+7
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(AppManager): Ensure that app manager can handle empty app keys on the ↵Ferdinand Thiessen2023-11-141-4/+6
| | | | | | navigation entries Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Allow to set custom app order on navigation entries added by closures ↵Ferdinand Thiessen2023-11-141-2/+3
| | | | | | to NavigationManager Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(NavigationManager): Always sort the default app firstFerdinand Thiessen2023-10-191-4/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(IAppManager): Allow to set the (user) default apps and get all global ↵Ferdinand Thiessen2023-10-191-0/+16
| | | | | | default apps Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Fix behavior when defaultapp is emptyCôme Chilliet2023-09-281-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Default to first application if no default app is setCôme Chilliet2023-09-261-1/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Move AppManager events to IEventDispatcherJoas Schilling2023-07-271-7/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(app): Do not clear unused cache keyChristoph Wurst2023-05-301-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add label for logo linkChristopher Ng2023-03-291-0/+24
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Small cleanups for AppManagerCôme Chilliet2023-03-201-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move loadApps to the AppManagerCôme Chilliet2023-03-201-0/+49
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move isType to AppManagerCôme Chilliet2023-03-201-1/+38
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Avoid calling Server::get more times than necessary in loadAppCôme Chilliet2023-03-201-29/+45
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Strong type private properties and methods in AppManagerCôme Chilliet2023-03-201-43/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Switch away from Server::get for AppManager and logger in loadAppCôme Chilliet2023-03-201-8/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move loadApp function to the AppManagerCôme Chilliet2023-03-201-0/+139
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Introduced app enable/disable/update typed eventsThomas Citharel2023-03-131-9/+20
| | | | | | OCP\App\ManagerEvent is depreciated since 22 without a replacement Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* set defaultEnabled in shipped.jsonMaxence Lange2022-09-151-2/+20
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Fix updating with appsJoas Schilling2021-11-111-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Keep group restrictions when reenabling apps after an updateJoas Schilling2021-10-131-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #27098 from nextcloud/fix/noid/missing-key-in-addInfoJohn Molakvoæ2021-06-161-1/+1
|\ | | | | force 'name' key in array
| * force 'name' key in arrayMaxence Lange2021-05-251-1/+1
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Less ILoggerJoas Schilling2021-04-271-13/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>