This app should migrate for Nextcloud 20 to OCA\Files_External\MountConfig.
See nextcloud/server#21785
Also the method getExternalMP does not need to be annotated with @NoAdminRequired - it's an internal method anyways only and it can be protected as well. In there just check for either the availability of OCA\Files_External\MountConfig::getAbsoluteMountPoints (for 20+) or OC_Mount_Config:: getAbsoluteMountPoints (for everything up to 19). Also why do you need those private method calls? Best would be to not rely on internal methods private classes.
This app should migrate for Nextcloud 20 to OCA\Files_External\MountConfig.
See nextcloud/server#21785
Also the method
getExternalMP
does not need to be annotated with@NoAdminRequired
- it's an internal method anyways only and it can beprotected
as well. In there just check for either the availability ofOCA\Files_External\MountConfig::getAbsoluteMountPoints
(for 20+) orOC_Mount_Config:: getAbsoluteMountPoints
(for everything up to 19). Also why do you need those private method calls? Best would be to not rely on internal methods private classes.