register app autoload instead of loading apps

This commit is contained in:
Arthur Schiwon 2016-08-12 13:23:14 +02:00 committed by Lukas Reschke
parent 3ad89a76b5
commit a5ba5bb19f
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
3 changed files with 8 additions and 12 deletions

View File

@ -23,19 +23,11 @@
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
*/

View File

@ -594,7 +594,8 @@ class Installer {
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']);
}

View File

@ -348,7 +348,8 @@ class OC_App {
$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']);
}
}
@ -1170,7 +1171,8 @@ class OC_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']);
}
@ -1212,7 +1214,8 @@ class OC_App {
}
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']);
}