namespace OCA\SystemTags\Settings;
-use OCA\Federation\TrustedServers;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\Settings\ISettings;
class Admin implements ISettings {
- /** @var TrustedServers */
- private $trustedServers;
-
- public function __construct(TrustedServers $trustedServers) {
- $this->trustedServers = $trustedServers;
- }
-
/**
* @return TemplateResponse
*/
OC_App::setAppTypes($info['id']);
if(isset($info['settings']) && is_array($info['settings'])) {
- \OC_App::loadApp($app, false);
+ // requires that autoloading was registered for the app,
+ // as happens before running the install.php some lines above
\OC::$server->getSettingsManager()->setupSettings($info['settings']);
}
$info = self::getAppInfo($app);
if(isset($info['settings']) && is_array($info['settings'])) {
- self::loadApp($app, false);
+ $appPath = self::getAppPath($app);
+ self::registerAutoloading($app, $appPath);
\OC::$server->getSettingsManager()->setupSettings($info['settings']);
}
}
}
if(isset($info['settings']) && is_array($info['settings'])) {
- self::loadApp($app, false);
+ $appPath = self::getAppPath($app);
+ self::registerAutoloading($app, $appPath);
\OC::$server->getSettingsManager()->setupSettings($info['settings']);
}
}
self::setupBackgroundJobs($appData['background-jobs']);
if(isset($appData['settings']) && is_array($appData['settings'])) {
- self::loadApp($appId, false);
+ $appPath = self::getAppPath($appId);
+ self::registerAutoloading($appId, $appPath);
\OC::$server->getSettingsManager()->setupSettings($appData['settings']);
}